lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Matheis <matheis.ste...@googlemail.com>
Subject Re: synonyms file, and example cases
Date Tue, 25 Jan 2011 09:18:48 GMT
Cam,

the examples with the provided inline-documentation should help you, no?
http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.SynonymFilterFactory

The Backslash \ in that context looks like an Escaping-Character, to avoid
the => to be interpreted as "assign-command"

Regards
Stefan

On Tue, Jan 25, 2011 at 2:31 AM, Cam Bazz <cambazz@gmail.com> wrote:

> Hello,
>
> I have been looking at the solr synonym file that was an example, I
> did not understand some notation:
>
> aaa => aaaa
>
> bbb => bbbb1 bbbb2
>
> ccc => cccc1,cccc2
>
> a\=>a => b\=>b
>
> a\,a => b\,b
>
> fooaaa,baraaa,bazaaa
>
> The first one says search for aaaa when query is aaa. am I correct?
> the second one finds "bbbb1 bbbb2" when query is bbb
> the third one is find cccc1 or cccc2 when query is ccc
>
> the fourth, and fifth one I have not understood.
>
> the last one, i assume is a group, bidirectional mapping between
> fooaaa,baraaa,bazaaa
>
> I am especially interested with this last one, if I do aaa,bbb it will
> find aaa and bbb when either aaa or bbb is queryied?
>
> am I correct in those assumptions?
>
> Best regards,
> C.B.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message