You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Christian Loock <ch...@vkf-renzel.de> on 2013/09/03 10:57:12 UTC
Problem with Synonyms
Hello,
this is my first time writing at this mailing lost, so hello everyone.
I am having issues with synonyms.
I added the synonym to one of my field types:
|<fieldType name="text_general" class="solr.TextField" positionIncrementGap="100">
<analyzer type="index">
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" enablePositionIncrements="true"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
<filter class="solr.NGramFilterFactory" minGramSize="1" maxGramSize="15"/>
</analyzer>
<analyzer type="query">
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" enablePositionIncrements="true"/>
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
</fieldType>
I also added some Synonyms to my Synonyms.txt which is in the conf folder of my core.
However, when i look into the analyzer, the content wont be replaced and I cant figure out where the problem lies.
Can anybody help here? Im totally stuck...
|
Re: Problem with Synonyms
Posted by Christian Loock <ch...@vkf-renzel.de>.
The SF part is in the analysis page but nothing is substituted.
I reloaded, removed and readded the core, reindexed....nothing worked :(
I wonder if the SF actually uses the correct file for synonyms. I have
it laying in the conf folder of the core. Is that correct?
Am 03.09.2013 13:32, schrieb Erick Erickson:
> Please explain exactly what "but nothing
> really happens" means. Do you mean that
> you see the SF in the analysis page but there
> are no substitutions? Or you don't get
> search results? Or???
>
> You have to reload the core after making changes
> at minimum, you can restart the Solr instance
> if you're paranoid. And you have to re-index
> for changes in the index part of the analysis
> chain to take effect.
>
> Best
> Erick
>
>
> On Tue, Sep 3, 2013 at 6:33 AM, Christian Loock <ch...@vkf-renzel.de> wrote:
>
>> Am 03.09.2013 12:11, schrieb pravesh:
>>
>> SOLR has a nice analysis page. You can use it to get insight what is
>>> happening after each filter is applied at index/search time
>>>
>>>
>>> Regards
>>> Pravesh
>>>
>>>
>>>
>>> --
>>> View this message in context: http://lucene.472066.n3.**
>>> nabble.com/Problem-with-**Synonyms-tp4087905p4087915.**html<http://lucene.472066.n3.nabble.com/Problem-with-Synonyms-tp4087905p4087915.html>
>>> Sent from the Solr - User mailing list archive at Nabble.com.
>>>
>> Yeah thats the thing.
>>
>> It applies the Synonym Filter, but nothing really happens.
>>
>> Is there a way to see if the SF load my Synonym file?
>>
Re: Problem with Synonyms
Posted by Erick Erickson <er...@gmail.com>.
Please explain exactly what "but nothing
really happens" means. Do you mean that
you see the SF in the analysis page but there
are no substitutions? Or you don't get
search results? Or???
You have to reload the core after making changes
at minimum, you can restart the Solr instance
if you're paranoid. And you have to re-index
for changes in the index part of the analysis
chain to take effect.
Best
Erick
On Tue, Sep 3, 2013 at 6:33 AM, Christian Loock <ch...@vkf-renzel.de> wrote:
> Am 03.09.2013 12:11, schrieb pravesh:
>
> SOLR has a nice analysis page. You can use it to get insight what is
>> happening after each filter is applied at index/search time
>>
>>
>> Regards
>> Pravesh
>>
>>
>>
>> --
>> View this message in context: http://lucene.472066.n3.**
>> nabble.com/Problem-with-**Synonyms-tp4087905p4087915.**html<http://lucene.472066.n3.nabble.com/Problem-with-Synonyms-tp4087905p4087915.html>
>> Sent from the Solr - User mailing list archive at Nabble.com.
>>
> Yeah thats the thing.
>
> It applies the Synonym Filter, but nothing really happens.
>
> Is there a way to see if the SF load my Synonym file?
>
Re: Problem with Synonyms
Posted by Christian Loock <ch...@vkf-renzel.de>.
Am 03.09.2013 12:11, schrieb pravesh:
> SOLR has a nice analysis page. You can use it to get insight what is
> happening after each filter is applied at index/search time
>
>
> Regards
> Pravesh
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Problem-with-Synonyms-tp4087905p4087915.html
> Sent from the Solr - User mailing list archive at Nabble.com.
Yeah thats the thing.
It applies the Synonym Filter, but nothing really happens.
Is there a way to see if the SF load my Synonym file?
Re: Problem with Synonyms
Posted by pravesh <su...@yahoo.com>.
SOLR has a nice analysis page. You can use it to get insight what is
happening after each filter is applied at index/search time
Regards
Pravesh
--
View this message in context: http://lucene.472066.n3.nabble.com/Problem-with-Synonyms-tp4087905p4087915.html
Sent from the Solr - User mailing list archive at Nabble.com.