Skip to content

Instantly share code, notes, and snippets.

@eedeebee
Created January 3, 2014 22:11
Show Gist options
  • Save eedeebee/8247641 to your computer and use it in GitHub Desktop.
Save eedeebee/8247641 to your computer and use it in GitHub Desktop.
Search options for tweet and telephone fields, with suggestion source
<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>
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