Fabrizio Fortino created OAK-9912:
-------------------------------------
Summary: elastic: Spellcheck query with no descendants returns
incorrect number of results
Key: OAK-9912
URL: https://issues.apache.org/jira/browse/OAK-9912
Project: Jackrabbit Oak
Issue Type: Bug
Components: elastic-search, indexing
Reporter: Fabrizio Fortino
Assignee: Fabrizio Fortino
With Elastic, a query without a root node ({{{}ISDESCENDANTNODE(...){}}}) is
returning a maximum of 5 results. See the Elastic version of the test in
{{org.apache.jackrabbit.oak.plugins.index.IndexDescendantSpellcheckCommonTest.noDescendantSuggestsAll.}}
Also see other ignored tests in -
(oak-search/src/test/java/org/apache/jackrabbit/oak/plugins/index/IndexDescendantSpellcheckCommonTest.java)
This seems to be related to:
[https://discuss.elastic.co/t/elasticsearch-suggestion-completes-return-incorrect-number-of-suggestions/214522]
Even increasing the suggester query size the number of max results seems to be
fixed to 5.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)