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

**URL:** <https://discuss.elastic.co/t/is-there-a-way-of-querying-all-the-fields-without-knowing-their-names/117919>\
**Category:** Elasticsearch\
**Created:** [February 1, 2018, 1:48am UTC](https://discuss.elastic.co/t/is-there-a-way-of-querying-all-the-fields-without-knowing-their-names/117919 "2018-02-01T01:48:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon44344346](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@anon44344346](https://discuss.elastic.co/u/anon44344346)\
**Post date:** [February 1, 2018, 1:48am UTC](https://discuss.elastic.co/t/is-there-a-way-of-querying-all-the-fields-without-knowing-their-names/117919/1 "2018-02-01T01:48:05Z")

</div>

Continuing the discussion from [Dazzled and confused with the \_all field in 6.+](https://discuss.elastic.co/t/dazzled-and-confused-with-the--all-field-in-6/96822/2):

> [@Dazzled and confused with the \_all field in 6.+](https://discuss.elastic.co/t/dazzled-and-confused-with-the--all-field-in-6/96822/2):
>
> we will have a query that will query all the fields. So the end functionality is the same, just using a more efficient method.

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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 1, 2018, 1:48am UTC](https://discuss.elastic.co/t/is-there-a-way-of-querying-all-the-fields-without-knowing-their-names/117919/2 "2018-03-01T01:48:08Z")

</div>

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