Damon,

Your explanation is correct on what documents am I expecting for the query
formed.

Can you help what tools do you have to achieve this required behavior ?

Thanks.

On Wed, Apr 4, 2018 at 10:51 AM, Damon Feldman <damon.feld...@marklogic.com>
wrote:

> Praveen,
>
> Can you tell us the use case? It looks like you might want a phrase query
> on  a set of terms like property tax, propensity tax, etc, and perhaps some
> notion of relevance or scoring where 4 mentions is more important than just
> one or two.
>
> There are other tools that may help if you tell us the end goal you are
> trying to achieve.
>
> Damon
>
>
>     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
>
>
> _______________________________________________
> 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