lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter (JIRA)" <j...@apache.org>
Subject [jira] Created: (LUCENE-2850) FuzzyQuery doesnt support Stopwords
Date Thu, 06 Jan 2011 12:58:46 GMT
FuzzyQuery doesnt support Stopwords
-----------------------------------

                 Key: LUCENE-2850
                 URL: https://issues.apache.org/jira/browse/LUCENE-2850
             Project: Lucene - Java
          Issue Type: Bug
          Components: QueryParser
    Affects Versions: 3.0.4
         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) 
            Reporter: Peter


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.

    

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message