Multi-Index search (autocomplete)

Hey, I have four indicis (I couldn't create multi-type with single index using JDBC input in Logstash just to mention) called, cities, regions, countries and hotels they have a in common filed called name I want to search through theses indicis and get a result to use in autocompletion. Here's an example of single index search;

GET /hotels/hotels/_search
{
  "query": {
    "match": {
      "name": {
        "query": "term",
        "operator": "and"
      }
    }
  }
}

I want to do the same with multi-index situation. The below doesn't work:

GET hotels,cities,countries,regions/_search
{
  "query": {
    "match": {
      "name": {
        "query": "term",
        "operator": "and"
      }
    }
  }
}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.