I've fragmeneted my XML documents at a sub-document level.

<doc>

                <sub-doc>...</sub-doc>

                <sub-doc>...</sub-doc>

                <sub-doc>...</sub-doc>

                <sub-doc>...</sub-doc>

</doc>

 

I want to use the search API to get the scores of a query match on the
sub-doc fragments.  For instance, one document might have a sub-doc that
scores 72 and another that scores 56 (using simple scoring here).

However, it appears as though only the highest scoring sub-doc is shown
per document.  If there are two (or more) sub-docs that score the same,
they're shown, but that's the only case.

I need to see the scores of all of the sub-docs that contain "hits" for
each document (assuming their score falls within the top X results,
where X is the page-length).

 

Is there a way to do this, or is the only way to get it to happen to
actually make the sub-docs into documents?

 

Thanks,

David Steiner

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

Reply via email to