Thanks everyone for the insight. I guess I'll use BooleanQuery then.
There is also a caveat I noticed (not sure if it's an issue or not), which
is slightly different from the mentioned thread. When I have a multi-word
synonym, let say "wifi router" and "internet device". Then using
Hi Anh
The following Stackoverflow link might help
https://stackoverflow.com/questions/73240494/can-someone-assist-me-with-a-multi-word-synonym-problem-in-lucene
The following thread seems to confirm, that escaping the space with a
backslash does not help
Hi Lucene users,
I recently came across SynonymQuery and found out that it only supports
single-term synonyms (since it accepts a list of Term which will be
considered as synonyms). We have some multi-term synonyms like "internet
device" <-> "wifi router" or "dns" <-> "domain name service". Am I
Hello.
1)Yes. That's the purpose.
2) I've skimmed through QueryBuilder.java. Conclusion is that it creates
BQ.SHOULD (however, there should be something like DisjunctionMaxQuery)
over PhraseQuery or MultiPhraseQuery (-ies).
Good hack!
On Wed, Dec 28, 2022 at 2:23 AM Anh Dũng Bùi wrote:
> Hi