I’m trying to determine why some search result estimates are overcounted. 
Documents generally look like:

<chapter>
    <subchapter>
        <doc>
            <section>

Fragment root is set on <doc> (and no ancestors or descendants of <doc>). 
count(//doc) = xdmp:estimate(//doc) => true. The searchable expression is 
xdmp:directory((‘dir1’, ‘dir2’, …), ‘infinity’)//doc. The word query 
specification explicitly includes <doc> and excludes document root. 

The documentation suggests to prevent overcounting we just ensure that 1) 
searchable expressions always select a fragment, and 2) there are no predicates 
applied to the searchable expression. Are there any other conditions that may 
cause overcounting of a simple word query?

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

Reply via email to