lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrien Grand (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-11450) ComplexPhraseQParserPlugin not running charfilter for some multiterm queries in 6.x
Date Fri, 13 Oct 2017 14:14:00 GMT

    [ https://issues.apache.org/jira/browse/SOLR-11450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16203615#comment-16203615
] 

Adrien Grand commented on SOLR-11450:
-------------------------------------

Maybe Solr's classic analyzer is doing more than Lucene's. When I run the following code:

{code}
Analyzer analyzer = CustomAnalyzer.builder()
    .withTokenizer(StandardTokenizerFactory.class)
    .addTokenFilter(LowerCaseFilterFactory.class)
    .addTokenFilter(ASCIIFoldingFilterFactory.class)
    .build();
QueryParser qp = new QueryParser("field", analyzer);
Query query = qp.parse("König*");
System.out.println(query);
{code}

I get {{field:könig*}}, so the ascii folding filter is definitely not applied. Is Solr maybe
using AnalyzingQueryParser?

> ComplexPhraseQParserPlugin not running charfilter for some multiterm queries in 6.x 
> ------------------------------------------------------------------------------------
>
>                 Key: SOLR-11450
>                 URL: https://issues.apache.org/jira/browse/SOLR-11450
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>    Affects Versions: 6.6.1
>            Reporter: Tim Allison
>            Priority: Minor
>              Labels: patch-with-test
>         Attachments: SOLR-11450-unit-test.patch, SOLR-11450.patch
>
>
> On the user list, [~bjarkebm] reported that the charfilter is not being applied in PrefixQueries
in the ComplexPhraseQParserPlugin in 6.x.  Bjarke fixed my proposed unit tests to prove this
failure. All appears to work in 7.x and trunk. If there are plans to release a 6.6.2, let's
fold this in.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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


Mime
View raw message