If I understand your use-case correctly, you want a word-query exclude: 
https://docs.marklogic.com/guide/admin/wordquery

Phrase-around is for phrase control: 
https://docs.marklogic.com/guide/admin/text_index#id_29138

-- Mike

On 2 Oct 2014, at 12:05 , Girish Kulkarni <girishbkulka...@gmail.com> wrote:

> I have a simple document ...
> 
> <root>
> <sourceId>53067</sourceId>
> <sourceName>DB1</sourceName>
> <title>RMS7799</title>
> <content>Some content which should not be searched for and shown in 
> results</content>
> <contentWithoutMarkup>this is the original story which needs to be 
> found</contentWithoutMarkup>
> </root>
> 
> 
> i have configured the database with a phrase-around configuration so that i 
> should not be able to find this xml document when searching for the text in 
> the <content> field.
> So if i search using search:search("results") i see that marklogic found the 
> document with the following output...
> 
> <search:response snippet-format="snippet" total="1" start="1" 
> page-length="10" xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns="" 
> xmlns:search="http://marklogic.com/appservices/search";>
> <search:result index="1" uri="/docs/53067.xml" 
> path="fn:doc("/docs/53067.xml")" score="16896" confidence="0.749031" 
> fitness="0.749031">
> <search:snippet>
> <search:match path="fn:doc("/docs/53067.xml")/root">53067 DB1 RMS7799 Some 
> content which should not be searched for and shown in results this is the 
> original story which needs to be found</search:match>
> </search:snippet>
> </search:result>
> <search:qtext>results</search:qtext>
> <search:metrics>
> </search:response>
> 
> Is there any way for me to avoid marklogic finding this document entirely if 
> i search for any text from the <content> using index time configuration ?
> 
> Thanks
> Girish Kulkarni
> _______________________________________________
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general

_______________________________________________
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to