# How to match "/" when search?

**URL:** https://discuss.elastic.co/t/how-to-match-when-search/93746
**Category:** Elasticsearch
**Created:** [July 19, 2017, 11:17am UTC](https://discuss.elastic.co/t/how-to-match-when-search/93746 "2017-07-19T11:17:47Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![KeithTt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keithtt/32/29447_2.png) [@KeithTt](https://discuss.elastic.co/u/KeithTt)
#### Post date: [July 19, 2017, 11:17am UTC](https://discuss.elastic.co/t/how-to-match-when-search/93746/1 "2017-07-19T11:17:47Z")

</div>

ELK version: 5.4.1

I want to search "/1/p", and I use `"\/1\/p\/"` can match 1 and p, but "/" seems lost, I need to transform "/" to a string...

---

<div class="post-metadata">

### Author: ![simonlucalandi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simonlucalandi/32/14990_2.png) [@simonlucalandi](https://discuss.elastic.co/u/simonlucalandi)
#### Post date: [July 19, 2017, 11:31am UTC](https://discuss.elastic.co/t/how-to-match-when-search/93746/2 "2017-07-19T11:31:32Z")

</div>

Maybe you can use filter like this:

```
{
  "query": {
    "match": {
      "uripath": {
        "query": "/1/p",
        "type": "phrase"
      }
    }
  }
}
```

---

<div class="post-metadata">

### Author: ![KeithTt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keithtt/32/29447_2.png) [@KeithTt](https://discuss.elastic.co/u/KeithTt)
#### Post date: [July 19, 2017, 3:12pm UTC](https://discuss.elastic.co/t/how-to-match-when-search/93746/3 "2017-07-19T15:12:37Z")

</div>

how to use this filter in kibana search box.....?

* * *

I found the guide... thank you !

[https://www.elastic.co/guide/en/kibana/current/field-filter.html](https://www.elastic.co/guide/en/kibana/current/field-filter.html)

but the result is the same, the "/" still not been matched.

---

<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: [August 16, 2017, 3:13pm UTC](https://discuss.elastic.co/t/how-to-match-when-search/93746/4 "2017-08-16T15:13:15Z")

</div>

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