I am using search:search() to search against a set of documents where for some users the additional-query option includes an additional cts query that causes fewer results to be returned (fewer documents to be visible). When the search is done without the additional query, facet counts all work as expected. However when the same query is run with the additional query, facet counts match the original query but the search results do not include all the hits. It seems the additional query is not applied to the facet results. Let me illustrate:
Search without additional query returns: 4 distinct documents with matches to the query Facet counts show there are up to 4 documents satisfying the various facet constraints Search with additional query returns: 2 distinct documents because other 2 are no longer matches because of additional query Facet counts that are identical to search without additional query. (4 documents) Is this how the additional-query option is supposed to work? It seems that the facets are always calculated without it.
_______________________________________________ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general