The semantics of this is a document in which prop* occurs at least 4 times, where one of those times is within distance 1 of tax. Here's the thing: index resolution of min-occurs requires positions of the appropriate type, and there are various cases where we can't tell in the indexes and leave things for the filter to decide. If you are running unfiltered searches, you may get false positives from index resolution. Look at the query plan and see if it is using the occurrence constraint.
//Mary On Tue, 03 Apr 2018 19:37:52 -0700, 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. -- Using Opera's revolutionary email client: http://www.opera.com/mail/ _______________________________________________ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general