You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lucenenet.apache.org by Sudhanya Chatterjee <su...@persistent.co.in> on 2008/05/07 09:07:21 UTC
synonym query
Hi,
In our application we need to add synonym support.
We are presently using StandardAnalyzer while indexing.
How to add synonyms for any field while indexing?
We are presently using lucene.net dll version 1.9.1.3.
Thanks,
Sudhanya
DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.
Re: synonym query
Posted by Eran Sevi <er...@gmail.com>.
Hi,
You'll have to either inject the synonyms while indexing or expend your
query while searching.
You can see examples of the first method in the "Lucene In Action" book.
The basic idea is to create an analyzer that uses a new SysnonymFilter (you
can build it on top of StandardFilter). The filter injects the synonyms of
each token into the same position.
Hope that helps,
Eran.
On Wed, May 7, 2008 at 10:07 AM, Sudhanya Chatterjee <
sudhanya_chatterjee@persistent.co.in> wrote:
> Hi,
>
> In our application we need to add synonym support.
>
> We are presently using StandardAnalyzer while indexing.
>
>
>
> How to add synonyms for any field while indexing?
>
> We are presently using lucene.net dll version 1.9.1.3.
>
>
>
> Thanks,
>
> Sudhanya
>
>
> DISCLAIMER
> ==========
> This e-mail may contain privileged and confidential information which is
> the property of Persistent Systems Ltd. It is intended only for the use of
> the individual or entity to which it is addressed. If you are not the
> intended recipient, you are not authorized to read, retain, copy, print,
> distribute or use this message. If you have received this communication in
> error, please notify the sender and delete all copies of this message.
> Persistent Systems Ltd. does not accept any liability for virus infected
> mails.
>