Hi Ahmet,
Yes there is a space in my example.
This is my multiterm analyzer:

<analyzer type="multiterm">
        <charFilter class="solr.PatternReplaceCharFilterFactory"
                pattern="\-" replacement="\_" />
        <tokenizer class="solr.ICUTokenizerFactory" />
        <filter class="solr.ICUFoldingFilterFactory" />
</analyzer>

Thanks!

Eyal Naamati
Alma Developer
Tel: +972-2-6499313
Mobile: +972-547915255
[email protected]

www.exlibrisgroup.com

-----Original Message-----
From: Ahmet Arslan [mailto:[email protected]] 
Sent: Tuesday, December 29, 2015 5:18 PM
To: [email protected]
Subject: Re: multi term analyzer error

Hi Eyal,

What is your analyzer definition for multi-term?
In your example, is star charter separated from the term by a space?


Ahmet

On Tuesday, December 29, 2015 3:26 PM, Eyal Naamati 
<[email protected]> wrote:




Hi,
 
I defined a multi-term analyzer to my analysis chain, and it works as I expect. 
However, for some queries (for example '* or 'term *') I get an exception 
"analyzer returned no terms for multiTerm term". These queries work when I 
don't customize a multi-term analyzer.
My question: is there a way to handle this in the analyzer configuration (in my 
schema.xml)? I realize that I can also change the query I am sending the 
analyzer, but that is difficult for me since there are many places in our 
program that use this.
Thanks!
 
Eyal Naamati
Alma Developer
Tel: +972-2-6499313
Mobile: +972-547915255
[email protected]

www.exlibrisgroup.com

Reply via email to