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 Mohamed Parvez <pa...@gmail.com> on 2009/09/14 22:33:46 UTC

Load synonyms dynamically

Is there a way to load the synonyms dynamically.

I mean if the synonym.txt file changes then during query time the newly
added synonym should be active.

Currently it required a reindex

----
Thanks/Regards,
Parvez

Re: Load synonyms dynamically

Posted by Chris Hostetter <ho...@fucit.org>.
: Is there a way to load the synonyms dynamically.
: 
: I mean if the synonym.txt file changes then during query time the newly
: added synonym should be active.
: 
: Currently it required a reindex

it only requires reindexing if you used the synonyms as part of an "index" 
analyzer ... if you use them as part of a "query" analyzer then you can 
just restart the core.

There has been talk of adding some more general purpose functionality for 
Anslysis factories to be informed when a config file (like stopwords, 
synonyms, etc...) have been changed on disk, but at this point that code 
doesn't exist -- even if it did, it wouldn't eliminate the need to 
"reindex" if you're using it in an "index" analayzer.



-Hoss