Lucene.Net
  1. Lucene.Net
  2. LUCENENET-479

QueryParser.SetEnablePositionIncrements(false) doesn't work

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Lucene.Net 2.9.2, Lucene.Net 2.9.4, Lucene.Net 2.9.4g
    • Fix Version/s: Lucene.Net 3.0.3
    • Component/s: Lucene.Net Core
    • Labels:
      None

      Description

      Trying to disable position increments via SetEnablePositionIncrements(false) has no effect, at least on phrase queries.

      The parsed query returned from the QueryParser with this input, should by default return a phrase query whose terms look like: "Query with Stopwords" should look silmilar to this if converted to a string: "query ? stopwords", where ? is a null term query in the phrase query.

      With EnablePositionIncrements set to false, the resulting query should be similary to "query stopwords". However, calling SetEnablePositionIncrements(false) has no effect on the resulting query.

        Issue Links

          Activity

          Christopher Currens made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Christopher Currens made changes -
          Field Original Value New Value
          Link This issue is related to LUCENENET-478 [ LUCENENET-478 ]
          Christopher Currens created issue -

            People

            • Assignee:
              Unassigned
              Reporter:
              Christopher Currens
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development