# Query or Index problem, please help

**URL:** <https://discuss.elastic.co/t/query-or-index-problem-please-help/19339>\
**Category:** Elasticsearch\
**Created:** [August 19, 2014, 1:03pm UTC](https://discuss.elastic.co/t/query-or-index-problem-please-help/19339 "2014-08-19T13:03:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vitaly\_bulgakov](https://avatars.discourse-cdn.com/v4/letter/v/76d3ee/32.png) [@vitaly\_bulgakov](https://discuss.elastic.co/u/vitaly_bulgakov)\
**Post date:** [August 19, 2014, 1:03pm UTC](https://discuss.elastic.co/t/query-or-index-problem-please-help/19339/1 "2014-08-19T13:03:00Z")

</div>

I use elasticsearch-head.

The query is  
{  
"query": {  
"term": {  
"nonsense":"nonsense"  
}  
}  
}

The result does not care about the field and value I search for. It always  
gives the entire index.  
{

- took: 2
- timed\_out: false
- \_shards: {
  - total: 5
  - successful: 5
  - failed: 0  
}

- hits: {
  - total: 10
  - max\_score: 1
  - hits: [
    - {
      - \_index: logstash-2014.08.18
      - \_type: logs
      - \_id: SMUgTGR9R-2SVaL1GTeX9A
      - \_score: 1
      - \_source: {
        - message: ..............
        - @version: 1
        - @timestamp: 2014-08-18T16:16:48.797Z
        - host: [dfwlndsrch-01.supermedia.com](http://dfwlndsrch-01.supermedia.com)
        - kw: area a realty
        - town: South Bend
        - state: IN
        - ip: 198.64.136.68
        - src: ve-whitepages-dt  
}  
}

    - {
      - \_index: logstash-2014.08.18
      - \_type: logs
      - \_id: yWR6DC9sQ2yAqxG9FJXauw
      - \_score: 1
      - \_source: {
        - message: ...........
        - @version: 1
        - @timestamp: 2014-08-18T16:16:48.797Z
        - host: [dfwlndsrch-01.supermedia.com](http://dfwlndsrch-01.supermedia.com)
        - kw: Doors
        - town: Chicago
        - state: IL
        - ip: 98.213.210.163
        - src: lsxppc21611  
}  
}

    - {
      - \_index: logstash-2014.08.18
      - \_type: logs
      - \_id: Z\_e-DQQkSv2ON1ar1WooSQ
      - \_score: 1
      - \_source: {
        - message: ............
        - @version: 1
        - @timestamp: 2014-08-18T16:16:48.797Z
        - host: [dfwlndsrch-01.supermedia.com](http://dfwlndsrch-01.supermedia.com)
        - kw: home improvement
        - town: Clarkston
        - state: GA
        - ip: 172.56.1.181
        - src: lsxppc19735  
}  
}

    - {
      - \_index: logstash-2014.08.18
      - \_type: logs
      - \_id: SibOPwAASPOuod5xRB5LLg
      - \_score: 1
      - \_source: {
        - message: ..............
        - @version: 1
        - @timestamp: 2014-08-18T16:16:48.796Z
        - host: [dfwlndsrch-01.supermedia.com](http://dfwlndsrch-01.supermedia.com)
        - kw: Ready Mix Concrete
        - town: Zephyrhills
        - state: FL
        - ip: 63.251.207.54
        - src: comlocal5  
}  
}

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/b1579846-cc31-4772-9cd2-4e7c06666019%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b1579846-cc31-4772-9cd2-4e7c06666019%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:07am UTC](https://discuss.elastic.co/t/query-or-index-problem-please-help/19339/2 "2017-07-06T01:07:44Z")

</div>


