Thank you for your response!
In relation with the second question, I was wondering If there is something like this or similar(using DSL):
Code:
QueryBuilder builder = ftSession.getSearchFactory().buildQueryBuilder()
.forEntity( Empresa.class ).withAnalyzer(Analyzer).get();
As I read, the only way to override the "deafult" analyzer is using the
overridesForField method. Is there something similar to the overridesForField method but at class level?
What I'm trying to do is the following:
I have an Empresa entity which I need to be indexed with a custom analyzer that for example doesn't have the SynonymFilter. But when I'm searching I want to use the other Analyzer (both at Entity level) that has the SynonymFilter. Is there a way to implement it without specifying each of the fields to override and using DSL?