Solr
  1. Solr
  2. SOLR-3352

eDismax: pf2 should kick in for a query with 2 terms

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1, 3.2, 3.3, 3.4, 3.5, 3.6
    • Fix Version/s: 4.0-ALPHA
    • Component/s: None
    • Labels:
      None

      Description

      ...and pf3 for query with 3 terms. Today q=foo bar does not generate a bigram, but q=foo bar baz generates two bigrams.

      1. SOLR-3352.patch
        4 kB
        Jan Høydahl

        Issue Links

          Activity

          Hide
          Jan Høydahl added a comment -

          The patch. Only change is "<=" into "<".

          Also adding test for pf, pf2, pf3 and ps to validate the fix.

          Let's fix this now and worry about optimizing potential corner cases with redundant clauses as a separate issue.

          Show
          Jan Høydahl added a comment - The patch. Only change is "<=" into "<". Also adding test for pf, pf2, pf3 and ps to validate the fix. Let's fix this now and worry about optimizing potential corner cases with redundant clauses as a separate issue.
          Hide
          Jan Høydahl added a comment -

          Committed

          Show
          Jan Høydahl added a comment - Committed

            People

            • Assignee:
              Jan Høydahl
              Reporter:
              Jan Høydahl
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development