Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0.15, 1.1.6
    • query
    • None

    Description

      Similar to planned support for spell check OAK-2175 we need to provide support for suggestor via the Query engine. It should be possible to various parameters as supported by Lucene suggestor impl [1]

      SELECT rep:suggest() FROM nt:base WHERE jcr:path = '/' AND SUGGEST('fox is')
      

      Such an approach should allow

      1. Selecting the right suggestor index via path
      2. Ability to pass parameter like number of suggestions required, context etc
        1. search phrase
        2. Set of contexts - contexts to filter the lookup by
        3. onlyMorePopular - return only more popular results
        4. num - maximum number of results to return

      [1] https://github.com/apache/lucene-solr/blob/trunk/lucene/suggest/src/java/org/apache/lucene/search/suggest/Lookup.java#L252

      Attachments

        1. OAK-2455.0.patch
          10 kB
          Tommaso Teofili
        2. OAK-2455.1.patch
          12 kB
          Tommaso Teofili

        Issue Links

          Activity

            People

              teofili Tommaso Teofili
              chetanm Chetan Mehrotra
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: