[ 
https://issues.apache.org/jira/browse/SOLR-5387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claire Chan closed SOLR-5387.
-----------------------------

the resolution is verified.

> Multi-Term analyser not working
> -------------------------------
>
>                 Key: SOLR-5387
>                 URL: https://issues.apache.org/jira/browse/SOLR-5387
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Claire Chan
>            Priority: Major
>             Fix For: 4.5
>
>
> I tried the solr 4.5 example schema modifed by changing a field, say, 'manu' 
> to the following fieldType:
> <fieldType name="text_general_mt" class="solr.TextField" 
> positionIncrementGap="100">
> ...
>       <analyzer type="query">
>         <tokenizer class="solr.StandardTokenizerFactory"/>
>         <filter class="solr.LowerCaseFilterFactory"/>
>       </analyzer>
>       <analyzer type="multiterm">
>         <tokenizer class="solr.StandardTokenizerFactory"/>
>         <filter class="solr.LowerCaseFilterFactory"/>
>       </analyzer>
>     </fieldType>
> After indexing a document with manu value [email protected], 
> the following search throw an Exception:
> manu:(european@unio*)
> The exception:
> analyzer returned too many terms for multiTerm term: european@unio
> org.apache.solr.common.SolrException: analyzer returned too many terms for 
> multiTerm term: european@unio
>         at 
> org.apache.solr.schema.TextField.analyzeMultiTerm(TextField.java:157)
>         at 
> org.apache.solr.parser.SolrQueryParserBase.analyzeIfMultitermTermText(SolrQueryParserBase.java:936)
>         at 
> org.apache.solr.parser.SolrQueryParserBase.getPrefixQuery(SolrQueryParserBase.java:981)
>         at 
> org.apache.solr.parser.SolrQueryParserBase.handleBareTokenQuery(SolrQueryParserBase.java:746)
>         at org.apache.solr.parser.QueryParser.Term(QueryParser.java:300)
>         at org.apache.solr.parser.QueryParser.Clause(QueryParser.java:186)
>         at org.apache.solr.parser.QueryParser.Query(QueryParser.java:108)
> I thought I did exactly as instructed by various MultiTerm-blogs & 
> Wiki-Pages. So please take a look if this is a bug.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to