Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for regexp Filter #27

Closed
kylebrandt opened this issue Jan 8, 2015 · 0 comments
Closed

Add Support for regexp Filter #27

kylebrandt opened this issue Jan 8, 2015 · 0 comments
Assignees

Comments

@kylebrandt
Copy link

It looks like this filter isn't implemented:

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-regexp-filter.html

Would that be possible? I'm trying to create something like the following (and regexp lets me deal with both numbered and string fields):

POST logstash-2015.01.08/_search?count=true
{
   "aggregations":{
      "g_eventlog_id":{
         "aggregations":{
            "g_TargetUserName":{
               "aggregations":{
                  "ts":{
                     "date_histogram":{
                        "field":"@timestamp",
                        "interval":"30m"
                     }
                  }
               },
               "terms":{
                  "field":"TargetUserName"
               }
            }
         },
         "terms":{
            "field":"eventlog_id"
         }
      }
   },
   "query": {
       "filtered":{
          "query": { 
              "range": {
                    "@timestamp":{
                        "from":"2015-01-08T19:37:59.091203948Z",
                        "include_lower":true,
                        "include_upper":true,
                        "to":"2015-01-08T20:37:59.091203948Z"
                    }
                }
          },
          "filter": {"regexp":{ "eventlog_id": "4624"}}
       }
   }
}
@olivere olivere self-assigned this Jan 9, 2015
@olivere olivere closed this as completed in ab1ba29 Jan 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants