On Fri, 12 Oct 2012 13:14:01 -0700, Whitby, Rob, Springer Healthcare UK  
<[email protected]> wrote:

> Not sure about in the search api but with cts:search:
>
> cts:search(
>   fn:collection(),
>   cts:element-word-query(xs:QName("a"), "the", "min-occurs=2"),
>   "filtered"
> )
>
> It has to be filtered I think. Seeing as the term-frequency is used in  
> calculating the score, I thought it might be possible to use cts:fitness  
> in combination with score-logtf on the search and the unscaled-log db  
> setting, but this doesn't seem to work as I (probably wrongly) expect.
>
>

It will be accurate for simple cases like this as long as you have the  
right
positions enabled.

If you run xdmp:plan over it and see min-occurs in the final plan, you have
the right positions enabled.

//Mary

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to