# No results match your search criteria

**URL:** <https://discuss.elastic.co/t/no-results-match-your-search-criteria/313581>\
**Category:** Elasticsearch\
**Created:** [September 2, 2022, 6:44pm UTC](https://discuss.elastic.co/t/no-results-match-your-search-criteria/313581 "2022-09-02T18:44:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kurdit](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kurdit/32/54994_2.png) [@kurdit](https://discuss.elastic.co/u/kurdit)\
**Post date:** [September 2, 2022, 6:44pm UTC](https://discuss.elastic.co/t/no-results-match-your-search-criteria/313581/1 "2022-09-02T18:44:14Z")

</div>

hi all! Maybe a stupid question, but I couldn't figure it out myself. inaccurate search in Kibana through the search bar in Discovery does not return anything ... if you search by fields, then the pots query works

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/5/d58096efa8941bde0c6c01ab8be2d80cfa227226.jpeg)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/2/72e0871302aded78321b109ae6c47ec0785aa29f.jpeg)

I got a search query from Inspect, checked it through DevTools - there are no matches (although there should be a lot of them)

here is part of that search query:

```auto
“query": {
     bool: {
       "must": [],
       "filter": [
         {
           range: {
             "@timestamp": {
               "format": "strict_date_optional_time",
               "gte": "2022-09-02T15:06:52.521Z",
               lte: "2022-09-02T15:21:52.521Z"
             }
           }
         },
         {
           "match_phrase": {
             "agent": "mozilla"
           }
         }
       ],
       "should": [],
       "must_not": []
     }
   },

```

I have something with indexing? Or is it due to the lack of a data stream?

---

<div class="post-metadata">

**Author:** ![kurdit](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kurdit/32/54994_2.png) [@kurdit](https://discuss.elastic.co/u/kurdit)\
**Post date:** [September 3, 2022, 11:23pm UTC](https://discuss.elastic.co/t/no-results-match-your-search-criteria/313581/2 "2022-09-03T23:23:42Z")

</div>

and when i search "\* Mozilla \*" or "Mozilla \*" then I get search results.

 ![](https://us1.discourse-cdn.com/elastic/original/3X/5/4/546ac4f511e0d08f6f9683afed9b3057cc69bd34.png)  
 ![](https://us1.discourse-cdn.com/elastic/original/3X/b/e/be81e9480eaa3c7d99860c115bb16b95c876bfa9.png)

but and without \* or whith "\*Mozilla" I get nothing

 ![](https://us1.discourse-cdn.com/elastic/original/3X/5/e/5e9bd44fef92853e5d3694b259e339cf3c4652ae.png)

 ![](https://us1.discourse-cdn.com/elastic/original/3X/d/f/df16ef13678596d661d9086a285bf6303324fdc1.png)

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [September 4, 2022, 12:33am UTC](https://discuss.elastic.co/t/no-results-match-your-search-criteria/313581/3 "2022-09-04T00:33:50Z")

</div>

You should take a look at this

> **[Kibana Query Language | Kibana Guide \[8.4\] | Elastic](https://www.elastic.co/guide/en/kibana/current/kuery-query.html)**

In the KQL bar, you should name a field you want to search on.

I also suspect that field may a `keyword`, not a `text` field. You should probably look at what the difference is are.

Finally you could post a mappings of your index by

`GET you-index-name`

And share the result

---

<div class="post-metadata">

**Author:** ![kurdit](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kurdit/32/54994_2.png) [@kurdit](https://discuss.elastic.co/u/kurdit)\
**Post date:** [September 4, 2022, 12:49am UTC](https://discuss.elastic.co/t/no-results-match-your-search-criteria/313581/4 "2022-09-04T00:49:59Z")

</div>

yes you are right - all fields in that index "keyword"

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [September 4, 2022, 1:04am UTC](https://discuss.elastic.co/t/no-results-match-your-search-criteria/313581/5 "2022-09-04T01:04:17Z")

</div>

You should probably read about the differences

Actually, this looks like a decent article

> **[Elasticsearch: Text vs. Keyword](https://codecurated.com/blog/elasticsearch-text-vs-keyword/)**
>
> Many people that have just started learning Elasticsearch often confuse the Text and Keyword field data type. The difference between them is simple, but very crucial.

You should also learn about KQL

Using wildcards on keyword is not generally best practice... Not to say there is not specific use cases where it makes sense.

I suspect what you're thinking of is text search

---

<div class="post-metadata">

**Author:** ![kurdit](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kurdit/32/54994_2.png) [@kurdit](https://discuss.elastic.co/u/kurdit)\
**Post date:** [September 4, 2022, 1:15am UTC](https://discuss.elastic.co/t/no-results-match-your-search-criteria/313581/6 "2022-09-04T01:15:45Z")

</div>

thank you very much for your answer, i will read more

---

<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:** [October 2, 2022, 1:16am UTC](https://discuss.elastic.co/t/no-results-match-your-search-criteria/313581/7 "2022-10-02T01:16:20Z")

</div>

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