Return alias-id instead of index-id


(JoseAlberto) #1

When doing a suggestion query to multiple index, I need to know which index is returning the suggestions to display it properly.

When using aliases, it works as expected except the ruslts include "realname" instead of "alias name".

Is it possible to change this?

Ex (only copying relevant part):

suggest:
  suggestion:
    text: bar
      options:
        text: bar bar bar
        _index: foo-03

so foo-03 is real-index with alias foo, I would like to get _index: foo or at least the alias name included in other attribute.

Is this possible?


(Simon Willnauer) #2

no this is not possible at this point