Synonym graph and multiple values
Kai Grossjohann <[email protected]> Tue, 25 Mar 2025 17:46:48 +0100
| Newsgroups | gmane.comp.jakarta.lucene.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I'd like to understand more about how multiple values of a field are
handled. Consider a Lucene document with a field foo that has a single
value “a b c d” versus another Lucene document where the field foo has
two values, namely “a b” and “c d”.
When using Synonym Graph (so that synonym phrases are supported), and
supposing I have a synonym phrase “b c”...
* I suppose the Lucene document with the single value “a b c d”
matches this synonym phrase, but
* does the other document match this phrase, as well?
In a similar vein, how to phrase queries behave? If I query for the
phrase “b c” will the two-value document match?
Thanks,
Kai