# Search fields (file path), with similiar file regex/patterns

**URL:** <https://discuss.elastic.co/t/search-fields-file-path-with-similiar-file-regex-patterns/20737>\
**Category:** Elasticsearch\
**Created:** [November 13, 2014, 9:11pm UTC](https://discuss.elastic.co/t/search-fields-file-path-with-similiar-file-regex-patterns/20737 "2014-11-13T21:11:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Veerraju\_Tadimeti](https://avatars.discourse-cdn.com/v4/letter/v/cab0a1/32.png) [@Veerraju\_Tadimeti](https://discuss.elastic.co/u/Veerraju_Tadimeti)\
**Post date:** [November 13, 2014, 9:11pm UTC](https://discuss.elastic.co/t/search-fields-file-path-with-similiar-file-regex-patterns/20737/1 "2014-11-13T21:11:15Z")

</div>

Hi,

I am new to Elastic Search. I have a field which is file path. I want to  
search this field which has similar file patterns. Here is an example of  
different values of the field URI:

1. /cds-apis/api/v1/tables/c9d514df-d856-4970-a2d5-1c71e9c9c4a0/staging
2. /cds-apis/api/v1/tables/d9d514df-d856-4970-a2d5-1c71e9c9c4a1/staging

I want to search all documents containing the URI with this pattern  
(/api/v1/tables/{UUID}/staging) or (/api/v1/tables/\*/staging) . I want to  
search using json client, Java API and Kibana. Please do needful.

--  
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/375d01a1-8c73-4f3b-9460-f278be2e6712%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/375d01a1-8c73-4f3b-9460-f278be2e6712%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![vgupta](https://avatars.discourse-cdn.com/v4/letter/v/67e7ee/32.png) [@vgupta](https://discuss.elastic.co/u/vgupta)\
**Post date:** [July 31, 2015, 2:16pm UTC](https://discuss.elastic.co/t/search-fields-file-path-with-similiar-file-regex-patterns/20737/2 "2015-07-31T14:16:42Z")

</div>

Were you able to find solution for above. I have similar requirement

thanks

---

<div class="post-metadata">

**Author:** ![dantuff](https://avatars.discourse-cdn.com/v4/letter/d/e79b87/32.png) [@dantuff](https://discuss.elastic.co/u/dantuff)\
**Post date:** [July 31, 2015, 3:23pm UTC](https://discuss.elastic.co/t/search-fields-file-path-with-similiar-file-regex-patterns/20737/3 "2015-07-31T15:23:57Z")

</div>

Have a look at the [Regexp Query](https://www.elastic.co/guide/en/elasticsearch/reference/1.6/query-dsl-regexp-query.html).

---

<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 5, 2017, 11:57pm UTC](https://discuss.elastic.co/t/search-fields-file-path-with-similiar-file-regex-patterns/20737/4 "2017-07-05T23:57:58Z")

</div>


