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)

-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

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 3 | next ›
Discussion Overview
groupdev @
postedJan 6, '11 at 12:59p
activeJan 7, '11 at 4:29p

1 user in discussion

Peter (JIRA): 3 posts



site design / logo © 2021 Grokbase