Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-8089

Support query parsers being able to set enablePositionIncrements

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      In 5.0 LUCENE-4963 disallowed setting enablePositionIncrements=false on any token filter. The idea being no filter should change the token stream in a way that could mess up preceding or following analysis components

      So if a user wants to be able to have PhraseQueries that match across stopwords they cannot unless the parser is configured to not take position increments into account when generating phrase queries .

      This is documented in the "Token Position Increments" section here : https://lucene.apache.org/core/5_3_0/core/org/apache/lucene/analysis/package-summary.html

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              varun Varun Thacker

              Dates

              • Created:
                Updated:

                Issue deployment