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 xdzgor <pk...@alphasolutions.dk> on 2010/06/25 04:33:49 UTC
Synonym configuration
Hi, can someone please confirm the following statements about configuration
for the synonym filter, or correct me where I'm wrong?
a => b
a search for "a", is changed into a search for "b"
a, b => c
a search for "a" or a search for "b", is changed into a search for "c"
(the same as a=>c and b=>c)
a => b, c
a search for "a", is changed into a search for "b" and a search for "c"
(the same as a=>b and a=>c)
a, b => c, d
a search for "a" or a search for "b", is changed into a search for "c" and a
search for "d"
(the same as a=>c,d and b=>c,d)
a, b, c
depends on the value of the "expand" parameter in configuration (in the
synonym filter config i schema.xml)
if expand==true
a, b, c => a, b, c
if expand==false
a, b, c => a
Thanks,
Peter
--
View this message in context: http://lucene.472066.n3.nabble.com/Synonym-configuration-tp921082p921082.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Synonym configuration
Posted by Koji Sekiguchi <ko...@r.email.ne.jp>.
(10/06/25 11:33), xdzgor wrote:
> Hi, can someone please confirm the following statements about configuration
> for the synonym filter, or correct me where I'm wrong?
>
> a => b
> a search for "a", is changed into a search for "b"
>
>
> a, b => c
> a search for "a" or a search for "b", is changed into a search for "c"
> (the same as a=>c and b=>c)
>
>
> a => b, c
> a search for "a", is changed into a search for "b" and a search for "c"
> (the same as a=>b and a=>c)
>
>
> a, b => c, d
> a search for "a" or a search for "b", is changed into a search for "c" and a
> search for "d"
> (the same as a=>c,d and b=>c,d)
>
>
> a, b, c
> depends on the value of the "expand" parameter in configuration (in the
> synonym filter config i schema.xml)
>
> if expand==true
> a, b, c => a, b, c
>
> if expand==false
> a, b, c => a
>
>
> Thanks,
> Peter
>
Peter,
I think you are correct!
Koji
--
http://www.rondhuit.com/en/