# Searches with or without double qoutes

**URL:** <https://discuss.elastic.co/t/searches-with-or-without-double-qoutes/121408>\
**Category:** Elasticsearch\
**Created:** [February 25, 2018, 9:14pm UTC](https://discuss.elastic.co/t/searches-with-or-without-double-qoutes/121408 "2018-02-25T21:14:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![scarybarry](https://avatars.discourse-cdn.com/v4/letter/s/a6a055/32.png) [@scarybarry](https://discuss.elastic.co/u/scarybarry)\
**Post date:** [February 25, 2018, 9:14pm UTC](https://discuss.elastic.co/t/searches-with-or-without-double-qoutes/121408/1 "2018-02-25T21:14:03Z")

</div>

Hi there,

If encountered a problem, and found the solution. Somebody else beat me to it in June 16. I tried the solution noted and it worked. But I don't understand why and the posted was already closed.

The problem is when doing a search in for example apache logs, and I search for a word "shell" in the request path /wp-admin/..blabla/shell2.php or /wp-admin/..blabla/shell1.php I was expected to do a search like this:  
request: "_shell_"

But this would not show the expected result. When I added the digit 2 it showed only the shell2 results.  
request: "_shell2_"

When I remove the dubble qoutes like the solution from the early post, the result was perfect.  
request: _shell_

Why is this? And when should I use dubble qoutes and when shouldn't I?

---

<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 25, 2018, 9:14pm UTC](https://discuss.elastic.co/t/searches-with-or-without-double-qoutes/121408/2 "2018-03-25T21:14:27Z")

</div>

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