You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by "Lee, Andrew J (CA - Toronto)" <an...@deloitte.ca> on 2006/07/25 02:52:10 UTC
Newbie synonyms question
Sorry if this question has already been answered, but it is regarding
synonyms.
I am using the WordNet/Synonyms index and using the following algorithm
to create synonym searches (this is a dumbed down version):
Look up a the "base" word in the synonym index
In my search string, replace all instances of the base word with
"(synonym1 | synonym 2 | ... | synonym n)"
Use this new search string against my search index
1) Is there an easier / more efficient way to go about this?
2) Does Lucene have any built-in capability to handle synonyms? For
example, can I point it to the synonym index and let Lucene perform all
the work of synonym lookup / replacement?
Thanks in advance,
Andrew Lee
-----------------------------------------
*******************************************************************
*******************
Confidentiality Warning: This message and any attachments are
intended only for the use of the intended recipient(s), are
confidential, and may be privileged. If you are not the intended
recipient, you are hereby notified that any review, retransmission,
conversion to hard copy, copying, circulation or other use of this
message and any attachments is strictly prohibited. If you are not
the intended recipient, please notify the sender immediately by
return e-mail, and delete this message and any attachments from
your system. Thank you.
Information confidentielle: Le pr�sent message, ainsi que tout
fichier qui y est joint, est envoy� � l'intention exclusive de
son ou de ses destinataires; il est de nature confidentielle et
peut constituer une information privil�gi�e. Nous avertissons
toute personne autre que le destinataire pr�vu que tout examen,
r�acheminement, impression, copie, distribution ou autre
utilisation de ce message et de tout fichier qui y est joint est
strictement interdit. Si vous n'�tes pas le destinataire pr�vu,
veuillez en aviser imm�diatement l'exp�diteur par retour de
courriel et supprimer ce message et tout document joint de votre
syst�me. Merci.
*******************************************************************
*******************
Re: Newbie synonyms question
Posted by Otis Gospodnetic <ot...@yahoo.com>.
Hi Andrew,
There is othing built into Lucene for synonyms, but you can grab the code from Lucene in Action to see how they can be handled (plus: http://www.lucenebook.com/search?query=synonyms for some context)
Otis
----- Original Message ----
From: "Lee, Andrew J (CA - Toronto)" <an...@deloitte.ca>
To: java-user@lucene.apache.org
Sent: Monday, July 24, 2006 8:52:10 PM
Subject: Newbie synonyms question
Sorry if this question has already been answered, but it is regarding
synonyms.
I am using the WordNet/Synonyms index and using the following algorithm
to create synonym searches (this is a dumbed down version):
Look up a the "base" word in the synonym index
In my search string, replace all instances of the base word with
"(synonym1 | synonym 2 | ... | synonym n)"
Use this new search string against my search index
1) Is there an easier / more efficient way to go about this?
2) Does Lucene have any built-in capability to handle synonyms? For
example, can I point it to the synonym index and let Lucene perform all
the work of synonym lookup / replacement?
Thanks in advance,
Andrew Lee
-----------------------------------------
*******************************************************************
*******************
Confidentiality Warning: This message and any attachments are
intended only for the use of the intended recipient(s), are
confidential, and may be privileged. If you are not the intended
recipient, you are hereby notified that any review, retransmission,
conversion to hard copy, copying, circulation or other use of this
message and any attachments is strictly prohibited. If you are not
the intended recipient, please notify the sender immediately by
return e-mail, and delete this message and any attachments from
your system. Thank you.
Information confidentielle: Le présent message, ainsi que tout
fichier qui y est joint, est envoyé à l'intention exclusive de
son ou de ses destinataires; il est de nature confidentielle et
peut constituer une information privilégiée. Nous avertissons
toute personne autre que le destinataire prévu que tout examen,
réacheminement, impression, copie, distribution ou autre
utilisation de ce message et de tout fichier qui y est joint est
strictement interdit. Si vous n'êtes pas le destinataire prévu,
veuillez en aviser immédiatement l'expéditeur par retour de
courriel et supprimer ce message et tout document joint de votre
système. Merci.
*******************************************************************
*******************
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org