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


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
To view this discussion on the web visit
For more options, visit

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


Have a look at the Regexp Query.