lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Harwood (JIRA)" <>
Subject [jira] Updated: (LUCENE-835) An IndexReader with run-time support for synonyms
Date Sun, 18 Mar 2007 12:10:09 GMT


Mark Harwood updated LUCENE-835:


> An IndexReader with run-time support for synonyms
> -------------------------------------------------
>                 Key: LUCENE-835
>                 URL:
>             Project: Lucene - Java
>          Issue Type: New Feature
>          Components: Index
>    Affects Versions: 2.1
>            Reporter: Mark Harwood
>         Assigned To: Mark Harwood
>         Attachments:,,,
> These classes provide support for enabling the use of synonyms for terms in an existing
> 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:
For additional commands, e-mail:

View raw message