lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paulosalamat <paulosala...@gmail.com>
Subject Re: What does it mean when you see a plus sign in between two words inside synonyms.txt?
Date Mon, 05 Apr 2010 10:10:17 GMT

Hi Koji,

Thank you for the reply.

I have another question. If WhitespaceTokenizer is used, is the term text
"macbook+air" equal to "macbook air"?

Thank you,
Paulo


On Mon, Apr 5, 2010 at 5:50 PM, Koji Sekiguchi [via Lucene] <
ml-node+697386-2142071620-218206@n3.nabble.com<ml-node%2B697386-2142071620-218206@n3.nabble.com>
> wrote:

> paulosalamat wrote:
>
> > Hi I'm new to this group,
> >
> > I would like to ask a question:
> >
> > What does it mean when you see a plus sign in between two words inside
> > synonyms.txt?
> >
> > e.g.
> >
> > macbookair => macbook+air
> >
> > Thanks,
> > Paulo
> >
> Welcome, Paulo!
>
> It depends on your tokenizer. You can specify a tokenizer via
> tokenizerFactory attribute when you use SynonymFilterFactory.
> The tokenizer is used when SynonymFilterFactory reads the
> synonyms.txt. If you do not specify it, WhitespaceTokenizer
> will be used as default.
>
> In the above example, the term text "macbookair" will be
> normalized to the term text "macbook+air", if WhitespaceTokenizer
> is used.
>
> Koji
>
> --
> http://www.rondhuit.com/en/
>
>
>
> ------------------------------
>  View message @
> http://n3.nabble.com/What-does-it-mean-when-you-see-a-plus-sign-in-between-two-words-inside-synonyms-txt-tp697235p697386.html
> To unsubscribe from What does it mean when you see a plus sign in between
> two words inside synonyms.txt?, click here< (link removed) ==>.
>
>
>

-- 
View this message in context: http://n3.nabble.com/What-does-it-mean-when-you-see-a-plus-sign-in-between-two-words-inside-synonyms-txt-tp697235p697403.html
Sent from the Solr - User mailing list archive at Nabble.com.

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