elasticsearch/elasticsearch — pull request #1453 by imotov (2011-11-11 00:18:33+00:00)
Title:  Fix processing of regex patterns in large terms facet requests

Regex patterns are ignored in large (more then 5000 facets) terms facet requests. For example:

curl -XGET 'http://localhost:9200/twitter/tweet/_search?pretty=true' -d '{
"size" : 0,
"query" : { "query_string" : {"query" : "*:*"} },
"facets" : {
"message" : {
"terms" : {
"field" : "message",
"regex" : "elas[a-z]*",
"size" : "20000"
}
}
}
}'