You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Tom Hill (JIRA)" <ji...@apache.org> on 2015/11/19 23:30:10 UTC
[jira] [Commented] (SOLR-8318) SimpleQueryParser doesn't use
MultiTermAnalysis for Fuzzy Queries
[ https://issues.apache.org/jira/browse/SOLR-8318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15014551#comment-15014551 ]
Tom Hill commented on SOLR-8318:
--------------------------------
In newPrefixQuery() in SimpleQParserPlugin, new queries are created like this
prefix = sf.getType().getPrefixQuery(qParser, sf, term);
Which adds a rewrite method:
query.setRewriteMethod(sf.getType().getRewriteMethod(parser, sf));
Is that relevant for fuzzy queries? Or can I just do:
fuzzy = new FuzzyQuery(new Term(entry.getKey(), text), fuzziness);
> SimpleQueryParser doesn't use MultiTermAnalysis for Fuzzy Queries
> -----------------------------------------------------------------
>
> Key: SOLR-8318
> URL: https://issues.apache.org/jira/browse/SOLR-8318
> Project: Solr
> Issue Type: Bug
> Components: query parsers
> Affects Versions: 5.3
> Reporter: Tom Hill
> Priority: Trivial
> Attachments: sqp_fuzzy_multiterm.patch
>
>
> Fuzzy queries in SimpleQParserPlugin don't seem to use the multi-term analysis chain. Prefix queries do, and SolrQueryParser does use multi-term analysis for fuzzy queries, so it seems like SimpleQParserPlugin should as well.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org