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-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org >