As I understand it is important to use the same analyzer type when indexing
but I have a hard time figuring out which index analyzer that matches the
If I e.g. want to search on prefix of words I suspect that I should use the
QueryBuilders.prefixQuery(...) but which index analyzer fits this (an NGram
Is there a general rule of thumb, documentation or how can I figure this out
Furthermore I have a vague idea that searching can be done using queries and
filters and that filters are faster (see
but I cannot figure out how to make a filter search in Java.
Any help is great.
Best regards Trym