You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by Kelly Taylor <wi...@hotmail.com> on 2009/08/18 20:24:33 UTC
Can synonyms be defined in a multi-valued field or a database?
I need the ability to remotely administer synonyms for each of my Solr
standalone instances. It seems that my only option is that of uploading a
file per instance, restarting the respective Solr instance(s), and then
rebuilding my indexes.
Can synonyms be defined in a multi-valued field or a database in place of a
file? Or can synonyms be administered in any way other than editing a file?
-Kelly
--
View this message in context: http://www.nabble.com/Can-synonyms-be-defined-in-a-multi-valued-field-or-a-database--tp25030768p25030768.html
Sent from the Solr - Dev mailing list archive at Nabble.com.
Re: Can synonyms be defined in a multi-valued field or a database?
Posted by Lajos <la...@protulae.com>.
Kelly,
We just had this problem. We implemented a custom SynonymFilterFactory
that accessed a Spring context and from that a list of synonyms from the
database via Hibernate. It was trivial to do and works quite well. Note
that you have to extend BaseTokenFilterFactory; you cannot just extend
SynonymFilterFactory.
Lajos
Kelly Taylor wrote:
> I need the ability to remotely administer synonyms for each of my Solr
> standalone instances. It seems that my only option is that of uploading a
> file per instance, restarting the respective Solr instance(s), and then
> rebuilding my indexes.
>
> Can synonyms be defined in a multi-valued field or a database in place of a
> file? Or can synonyms be administered in any way other than editing a file?
>
> -Kelly
>
>
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.5.392 / Virus Database: 270.13.59/2310 - Release Date: 08/17/09 18:04:00
>