Filtered aliases


(derrickburns) #1

I am trying to understand the filtered alias concept. The documentation
suggest that an alias is name for a list of (concrete index, filter,
routing) tuples. Is this correct?

If so, then I should be able to add different tuples, say (index1, filter1,
routing1) and (index2, filter2, routing2) to an alias. Then, when I search
for all documents in the alias, I get the documents in index1 filtered by
filter1 combined with the documents in index2 filtere by index2. Is this
corrrect?


(Shay Banon) #2

Think if it in another way. There is a single alias, which can point to one (or several) indices. You can only associate one filter with it, as well as routing information.

On Monday, January 30, 2012 at 11:37 PM, Derrick wrote:

I am trying to understand the filtered alias concept. The documentation suggest that an alias is name for a list of (concrete index, filter, routing) tuples. Is this correct?

If so, then I should be able to add different tuples, say (index1, filter1, routing1) and (index2, filter2, routing2) to an alias. Then, when I search for all documents in the alias, I get the documents in index1 filtered by filter1 combined with the documents in index2 filtere by index2. Is this corrrect?


(system) #3