Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-9912

elastic: Spellcheck query with no descendants returns incorrect number of results

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.46.0
    • elastic-search, indexing
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              fortino Fabrizio Fortino
              fortino Fabrizio Fortino
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: