Is there a way of querying all the fields without knowing their names?

Continuing the discussion from Dazzled and confused with the _all field in 6.+:

That's precisely what I want the _all field for. My current queries are:

{
  "query": {
    "multi_match": {
      "query": "something",
      "fields": ["indexed_text^3", "title^2", "_all"]
    }
  }
}

so the query is done in every field, but matches at "indexed_text" and "title" weight more.

So in the light of what you said, I thought I could do something like (excuse me being so Candide)

{
  "query": {
    "multi_match": {
      "query": "something",
      "fields": ["indexed_text^3", "title^2", "*"]
    }
  }
}

But I can't quite figure out on my own or in the docs what query are you talking about.

Would you give me a hint? txs.

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