Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 40178 invoked from network); 18 Mar 2007 12:10:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Mar 2007 12:10:44 -0000 Received: (qmail 75910 invoked by uid 500); 18 Mar 2007 12:10:43 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 75870 invoked by uid 500); 18 Mar 2007 12:10:43 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 75807 invoked by uid 99); 18 Mar 2007 12:10:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Mar 2007 05:10:41 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Mar 2007 05:10:29 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CFC69714076 for ; Sun, 18 Mar 2007 05:10:09 -0700 (PDT) Message-ID: <1796681.1174219809848.JavaMail.jira@brutus> Date: Sun, 18 Mar 2007 05:10:09 -0700 (PDT) From: "Mark Harwood (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Updated: (LUCENE-835) An IndexReader with run-time support for synonyms In-Reply-To: <12514665.1174219690221.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mark Harwood updated LUCENE-835: -------------------------------- Attachment: TestSynonymIndexReader.java > An IndexReader with run-time support for synonyms > ------------------------------------------------- > > Key: LUCENE-835 > URL: https://issues.apache.org/jira/browse/LUCENE-835 > Project: Lucene - Java > Issue Type: New Feature > Components: Index > Affects Versions: 2.1 > Reporter: Mark Harwood > Assigned To: Mark Harwood > Attachments: Synonym.java, SynonymIndexReader.java, SynonymSet.java, TestSynonymIndexReader.java > > > These classes provide support for enabling the use of synonyms for terms in an existing index. > While Analyzers can be used at Query-parse time or Index-time to inject synonyms these are not always satisfactory means of providing support for synonyms: > * Index-time injection of synonyms is less flexible because changing the lists of synonyms requires an index rebuild. > * Query-parse-time injection is awkward because special support is required in the parser/query logic to recognise and cater for the tokens that appear in the same position. Additionally, any statistical analysis of the index content via TermEnum/TermDocs etc does not consider the synonyms unless specific code is added. > What is perhaps more useful is a transparent wrapper for the IndexReader that provides a synonym-ized view of the index without requiring specialised support in the calling code. All of the TermEnum/TermDocs interfaces remain the same but behind the scenes synonyms are being considered/applied silently. > The classes supplied here provide this "virtual" view of the index and all queries or other code that examines this index using the special reader benefit from this view without requiring specialized code. A Junit test illustrates this code in action. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org