Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-2850

FuzzyQuery doesnt support Stopwords

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 3.0.4
    • Fix Version/s: None
    • Component/s: core/queryparser
    • Labels:
      None
    • Environment:

      lucene version 3.x, hudson build #213 (16.12.2010 23:03:54)
      solr version 3.x, hudson build #198 (16.12.2010 05:36:57)

    • Lucene Fields:
      New

      Description

      Stopword doesnt works if i use a fuzzy query.
      Working Example:
      -stopword: Gmbh
      -request:

      {!edismax qf=name}xyz^100 Gmbh^100
      -Parsed Query: +DisjunctionMaxQuery((name:xyz)^100.0)

      Failure:
      -stopword: Gmbh
      -request: {!edismax qf=name}

      xyz~0.5^100 Gmbh~0.5^100
      -Parsed Query: +((DisjunctionMaxQuery((name:xyz~0.5)^100.0) DisjunctionMaxQuery((name:Gmbh~0.5)^100.0))~2)

      For me it seems to be a problem with getFuzzyQuery(field, termImage, fms) in QueryParser.java:1419.
      The getFieldQuery method call returns null if i have a stopword. But getFuzzyQuery returns a DisjunctionMaxQuery.
      But its my first project with lucene/solr... therefore my understanding can be wrong.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tyr Peter
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: