I'm doing synonyms but for different reasons (many users in 1 index each with different synonyms) I need to handle synonyms only at query time. What is the best way to do this currently in es ?
Currently I'm thinking a process like:
analyze query and get tokens from es without searching
check tokens with other db for synonyms
rebuild query to es with synonyms for the current tokens included
Does this make sense ? Am I missing something? How would I do step 3 ?
Alternatively, if we don’t use synonyms at index time, then at search time, we would need to convert a query for English into a query for english OR british.
As a side question: What's your reason for having multiple users in one index?
@mainec
Because the number of users is big (at least thousands, hopefully low million) and I can't have that many indexes/shards because of the overhead.
I'll check it out and reply again if I still have questions.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.