Using aliases to search with java client


(danpolites) #1

I'm working on refactoring our application to use filtered aliases
instead of separate indices to handle multi-tenancy. I've got the api
working to create and remove indices, but I haven't figured out how to
actually specify the alias when I build a SearchRequest. Where do you
specify the alias when searching with the Java client? Also will
additional filters wipe out the filters in the alias?


(danpolites) #2

It just dawned on me that the alias name is more than likely used in
place of the index name in the docs. Is this correct?


(Shay Banon) #3

Yep.

On Mon, Jan 23, 2012 at 6:31 PM, danpolites dpolites@gmail.com wrote:

It just dawned on me that the alias name is more than likely used in
place of the index name in the docs. Is this correct?


(system) #4