lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Woodward <a...@flax.co.uk>
Subject Re: Index-time term expansion
Date Fri, 03 May 2013 18:31:19 GMT
Hi Glen,

You want the SynonymFilter: http://lucene.apache.org/core/4_2_0/analyzers-common/org/apache/lucene/analysis/synonym/SynonymFilter.html

Alan Woodward
www.flax.co.uk


On 3 May 2013, at 19:14, Glen Newton wrote:

> Hello,
> 
> I know I've seen it go by on this list and elsewhere, but cannot seem
> to find it: can someone point me to the best way to do term expansions
> at indexing time.
> 
> That is, when the sentence is: "This foo is in my way"
> And I somewhere: foo=bar|yak
> Lucene indexes something like:
>  "This foo|bar|yak is in my way"
> 
> where foo, bar and yak all share the same offset.
> Oh, interested in versions 3.6 and/or 4.2
> 
> Thanks,
> Glen
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
> 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message