lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <>
Subject Re: enhancement for SynonymFilter
Date Thu, 17 Nov 2016 21:17:14 GMT
Hmm are you saying SynonymFilter in 4.10.4 has this capability but
6.3.0 lost it?

So you you have a synonym "wow that's funny" -> "wtf", you want the
token for "wow" to state that it has a synonym?

Using the PositionLengthAttribute you should be able to reconstruct
this, because when you see "wtf' with position length 3, you know it
spanned "wow", "that's", "funny".

Mike McCandless

On Thu, Nov 17, 2016 at 10:22 AM, Bernd Fehling
<> wrote:
> Currently I'm tackling a problem with SynonymFilter while going from 4.10.4 to 6.3.0.
> For a special solution I need to know if a word (or multiword) is producing
> synonyms in SynonymFilter.
> Therefore I suggest the enhancement of "hasSynonyms" for SynonymFilter.
> A workaroud would be to buffer all results from SynonymFilter and check if
> after a word or multiword (of any type) is the next one a SYNONYM.
> A function "hasSynonyms" in SynonymFilter would make things easy :-)
> What do you think about this?
> Regards
> Bernd
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message