The min-occurs is an option to the word-query, not the near-query. I'd
check if results match what is described in the word query doc page.

On Tue, Apr 3, 2018, 10:37 PM Praveen Gontla <
praveenkumargontla...@gmail.com> wrote:

> Team,
>
> Has anyone come across a query like this ? Trying to understand what would
> happen in here.
>
> <cts:near-query weight="0" distance="1"> <cts:word-query weight="0">
> <cts:text xml:lang="en">prop*</cts:text>
> <cts:option>case-insensitive</cts:option>
> <cts:option>diacritic-insensitive</cts:option>
> <cts:option>punctuation-insensitive</cts:option>
> *<cts:option>min-occurs=4</cts:option>* </cts:word-query> <cts:word-query
> weight="0"> <cts:text xml:lang="en">tax</cts:text>
> <cts:option>case-insensitive</cts:option>
> <cts:option>diacritic-insensitive</cts:option>
> <cts:option>punctuation-insensitive</cts:option>
> <cts:option>unstemmed</cts:option> </cts:word-query>
> <cts:option>ordered</cts:option> </cts:near-query>
>
> When my near query contains a min-occurs option set how should it behave ?
>
> I thought a document that contains prop* with in a distance of 1 for the
> term tax atleast 4 times . But the documents I get for this query are not
> like that. Even if the document has single occurrence of the term property
> tax are also returned.
>
> Is my understanding correct or am I missing something in here ?
>
> Thanks,
> Praveen.
> _______________________________________________
> General mailing list
> General@developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
_______________________________________________
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to