Last active
January 2, 2016 03:59
-
-
Save eedeebee/8247596 to your computer and use it in GitHub Desktop.
Search options for fields with tweet and telephone #s
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> | |
</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
# update options | |
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