I have an entity class with only indexName in annotation.
@Document(indexName = "person")
public class Person {
...
}
I have documents in Person index with different types user,employee with same fields.
I wanted to pass index type at run time using esTemplate. something like below; setType("employee")
Is it possible to set the index type in spring data elastic search query?
Thanks,