Skip to content

Instantly share code, notes, and snippets.

@eedeebee
Last active January 2, 2016 03:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eedeebee/8247596 to your computer and use it in GitHub Desktop.
Save eedeebee/8247596 to your computer and use it in GitHub Desktop.
Search options for fields with tweet and telephone #s
<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>
# 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