# Search on all fields for free word searches

**URL:** <https://discuss.elastic.co/t/search-on-all-fields-for-free-word-searches/24381>\
**Category:** Elasticsearch\
**Created:** [June 25, 2015, 10:47pm UTC](https://discuss.elastic.co/t/search-on-all-fields-for-free-word-searches/24381 "2015-06-25T22:47:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bvnagaraju](https://avatars.discourse-cdn.com/v4/letter/b/ed655f/32.png) [@bvnagaraju](https://discuss.elastic.co/u/bvnagaraju)\
**Post date:** [June 25, 2015, 10:47pm UTC](https://discuss.elastic.co/t/search-on-all-fields-for-free-word-searches/24381/1 "2015-06-25T22:47:39Z")

</div>

Hi ,

I removed \_all part of optimizations we are doing and any free word searches used to run against this \_all and it appears that free word searches (united /states ) performed on all fields

Since \_all is no more I specified fields to search on but still searches are not working as expected

Below is the request body am am sending fro searches and "ATTITUDE.docx" is the value of FileName field and it has one document with this field value and am not getting that document part of search results

can some one help me with this

"query": {  
"bool": {  
"must": [  
{  
"query\_string": {  
"query": ""ATTITUDE.docx"",  
"default\_field": "text",  
"fields": [

```
          "filename",
          "title",
          "ocrpath",
           "text"
        ],
        "analyzer": "stopwordanalyzer"
      }
    }
  ]
}

```

}

---

<div class="post-metadata">

**Author:** ![dantuff](https://avatars.discourse-cdn.com/v4/letter/d/e79b87/32.png) [@dantuff](https://discuss.elastic.co/u/dantuff)\
**Post date:** [June 26, 2015, 6:21am UTC](https://discuss.elastic.co/t/search-on-all-fields-for-free-word-searches/24381/2 "2015-06-26T06:21:20Z")

</div>

What does `stopwordanalyzer` look like, did you index these fields with that analyzer? If not, remove the analyzer from the query, then default analyzer (standard analyzer) will be used instead and it will result in a match.

---

<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:** [July 6, 2017, 12:05am UTC](https://discuss.elastic.co/t/search-on-all-fields-for-free-word-searches/24381/3 "2017-07-06T00:05:18Z")

</div>


