# Kibana 3.1: Wildcard Lucene query not handling @ symbol

**URL:** <https://discuss.elastic.co/t/kibana-3-1-wildcard-lucene-query-not-handling-symbol/27586>\
**Category:** Kibana\
**Created:** [August 18, 2015, 1:00pm UTC](https://discuss.elastic.co/t/kibana-3-1-wildcard-lucene-query-not-handling-symbol/27586 "2015-08-18T13:00:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_6](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_6/32/1330_2.png) [@Alex\_6](https://discuss.elastic.co/u/Alex_6)\
**Post date:** [August 18, 2015, 1:00pm UTC](https://discuss.elastic.co/t/kibana-3-1-wildcard-lucene-query-not-handling-symbol/27586/1 "2015-08-18T13:00:58Z")

</div>

Kibana 3.1, Lucene query.

So I'm doing wildcard queries in the form of

```
entName:treeb*

```

Which will return documents with `treebeard` and `treebark` as values for `entName`.

I also have a field treeMail, which is set to be not analysed in ES. Wildcard queries don't seem to work though.

```
treeMail:treebeard@treemail.com
treeMail:treeb*@treemail.com
treeMail:treebeard@*
treeMail:treebeard*treemail.com

```

Only the first one returns any results.

in reality our field with the @ in the value isn't actually an email address and should just be processed as a string.

Any ideas as to why this isn't returning results as expected? I've had other issues in the past where wildcards didn't work as expected with special characters.

---

<div class="post-metadata">

**Author:** ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)\
**Post date:** [August 20, 2015, 4:32am UTC](https://discuss.elastic.co/t/kibana-3-1-wildcard-lucene-query-not-handling-symbol/27586/2 "2015-08-20T04:32:38Z")

</div>

I tried the same use case in Kibana 4, and it works (see my test below). Since both Kibana 3 and Kibana 4 pass the query straight to Lucene, I'd expect them to work the same exact way.

Could you post your sample doc and your mapping here?

```
curl -XPOST 'http://localhost:9200/test1' -d '{
    "mappings" : {
        "test" : {
            "properties" : {
				"post_date" : { "type" : "date"},
                "message" : { "type" : "string", "index" : "not_analyzed" }
            }
        }
    }
}'

curl -XPUT 'http://localhost:9200/test1/test/1' -d '{
    "post_date" : "2015-11-15T14:12:12",
    "message" : "test@email.com"
}'
```

 ![](https://us1.discourse-cdn.com/elastic/original/2X/1/1245c56ad788b6dcfb503651721761499eda6409.png)

 ![](https://us1.discourse-cdn.com/elastic/original/2X/2/2baf88f1cbe0a29a106c1757ff121d816d852d7b.png)

 ![](https://us1.discourse-cdn.com/elastic/original/2X/2/201c1214935ea14d6383318bf100bce0ff9fbb62.png)

---

<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, 2:14pm UTC](https://discuss.elastic.co/t/kibana-3-1-wildcard-lucene-query-not-handling-symbol/27586/3 "2017-07-06T14:14:36Z")

</div>

Closed on July 6, 2017, 2:14pm UTC


