You are free to take a look at the thread about synonym query from mars, initiated by Andrew Schetinin and myself. This code (suggestion) tries to handle synonym as a query expansion, rather than injection at indexing time, while fix the problems a simple expansion creates (mainly results of IDF).
Full details can be found at: http://mail-archives.apache.org/mod_mbox/lucene-java-user/200603.mbox/%3 [EMAIL PROTECTED] BTW, for reply please use ziv.gome_gmail_com (replace "_" where appropriate) Ziv Gome -----Original Message----- From: Dragon Fly [mailto:[EMAIL PROTECTED] Sent: Friday, April 21, 2006 8:49 PM To: java-user@lucene.apache.org Subject: Synonyms ... Hi, What is the best way to implement the following? Document 1 contains the following text: "THE CZECH REPUBLIC ORGANIZATION" Document 2 contains the following text: "THE CZE ORGANISATION" Synonym rules: (1) CZECH REPUBLIC --> CZE (2) CZE --> CZECH REPUBLIC (3) ORGANIZATION --> ORG, ORGANISATION All of the following phrase searches must match BOTH documents: "CZECH REPUBLIC ORGANIZATION" "CZECH REPUBLIC ORGANISATION" "CZECH REPUBLIC ORG" "CZE ORGANIZATION" "CZE ORGANISATION" "CZE ORG" I don't think the SynonymAnalyzer described in LIA would work because some of my "synonyms" contain multiple words. Thank you. _________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]