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 "Peter A. Kirk" <pk...@alpha-solutions.dk> on 2009/12/15 21:12:48 UTC
synonyms
Hi
It appears that Solr reads a synonym list at startup from a text file.
Is it possible to alter this behaviour so that Solr obtains the synonym list from a database instead?
Thanks,
Peter
Re: synonyms
Posted by Patrick Jungermann <pa...@googlemail.com>.
Hello Peter,
by using the existing SynonymFilterFactory, it is not possible to use a
database instead of a text file. This file will be read at startup and
the internal synonym catalogue (SynonymMap) will be created.
You could create your own filter factory that could create the needed
synonym catalogue by using a database. Look into the
SynonymFilterFactory and the SynonymFilter and you could get this to work.
As another possibility, you could create the needed synonym text file by
a script or something else, before the startup of Solr server. This
could probably be the easiest way.
-Patrick
Peter A. Kirk schrieb:
> Hi
>
>
>
> It appears that Solr reads a synonym list at startup from a text file.
>
> Is it possible to alter this behaviour so that Solr obtains the synonym list from a database instead?
>
>
>
> Thanks,
>
> Peter
>
>