Graph aspect and search differ from search result

When there is a character in the search bar, such as the underscore (_) and%, the number of results and the count of faces do not match the search results.

I have one search result that is correct, but the number of results and the number of facets are greater. I use search: parsing and passing structured cts: query as a parameter.

What could be the problem and this solution, please suggest.

+4
source share
1 answer

Your search results are filtered, but other values ​​are not. When using the Search API, the default behavior is to filter search results. This means that, in essence, he first obtains a set of candidate results using only indexes, and then checks and removes false positives. Boundaries and the final result can only be calculated using indexes, so they are never filtered.

There are several ways to handle this. The easiest way is to specify an option <search-option>unfiltered</search-option>and execute your queries without filtering. However, this means that any inaccuracies in the facet and results will also be reflected in the search results.

, . . , searchable-expression, . exact . , , , , . :

https://docs.marklogic.com/guide/performance/unfiltered

+6

Source: https://habr.com/ru/post/1614052/


All Articles