Hi Greet,

I suggest you to do these kind of transformation on query time only. Don't 
interfere with the index. This is way is more flexible. You can disable/enable 
on the fly, change your list without re-indexing. 

Just an imaginary example : When user passes String as International 
Businessmachine logo then this query can be generated : 

PhraseQuery("International Business Machine") AND/OR TermQuery(logo)



I know this is solr but please see : 
http://nolanlawson.com/2012/10/31/better-synonym-handling-in-solr/





On Thursday, February 20, 2014 11:47 AM, Geet Gangwar <geetgang...@gmail.com> 
wrote:
Hi,

I have a requirement to write a custom tokenizer using Lucene framework.

My requirement is it should have capabilities to match multiple words as
one token. for example. When user passes String as International Business
machine logo or IBM logo it should return International Business Machine as
one token and logo as one token.

Please help me as how can I approach this ...

Regards

Geet


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to