Created
January 3, 2014 22:11
-
-
Save eedeebee/8247641 to your computer and use it in GitHub Desktop.
Search options for tweet and telephone fields, with suggestion source
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<options xmlns="http://marklogic.com/appservices/search"> | |
<search-option>unfiltered</search-option> | |
<quality-weight>0</quality-weight> | |
<return-plan>true</return-plan> | |
<debug>true</debug> | |
<constraint name="tweet"> | |
<word> | |
<field name="tweet"/> | |
</word> | |
</constraint> | |
<constraint name="phone"> | |
<word> | |
<field name="phone" /> | |
</word> | |
</constraint> | |
<default-suggestion-source> | |
<word> | |
<field name="tweet" collation="http://marklogic.com/collation/codepoint"/> | |
</word> | |
</default-suggestion-source> | |
</options> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --anyauth --user user:password -X DELETE \ | |
-i -H "Content-type:application/xml" \ | |
http://localhost:8003/v1/config/query/tweet | |
curl --anyauth --user user:password -X POST -d@'./tweet_options.xml' \ | |
-i -H "Content-type:application/xml" \ | |
http://localhost:8003/v1/config/query/tweet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment