Is percolator supposed to work with regex queries?

Hi,

I have a document indexed in ES and it has a uriPattern non_analyzed string
field. When I do this:

curl -XPOST http://localhost:9200/_search -d '{
"query":{
"filtered":{
"query":{
"match_all":{

        }
     },
     "filter":{
        "regexp":{

"couchbaseDocument.doc.uriPattern":"https\:\/\/github\.com\/.*"
}
}
}
}
}'

It matches "uriPattern":"https://github.com/x/y" and returns the result.

BUT if I pass the same string to a percolator like this:

curl -XPUT localhost:9200/_percolator/connectors/githubproject -d '{
"query": {
"regexp": {
"uriPattern": "https\:\/\/github\.com\/.*",
"flags" : "ALL"
}
}
}'

curl -XGET localhost:9200/connectors/couchbaseDocument/_percolate -d '{
"doc" : {
"uriPattern" : "https://github.com/x/y"
}
}'

It does not match. I've tested all sorts of escapings and regex queries
with special characters don't seem to work in the context of percolators.

Am I doing something wrong?

Ara.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Anybody? Any idea?

Ara.

On Tuesday, August 6, 2013 12:58:55 PM UTC-7, Ara Ebrahimi wrote:

Hi,

I have a document indexed in ES and it has a uriPattern non_analyzed
string field. When I do this:

curl -XPOST http://localhost:9200/_search -d '{
"query":{
"filtered":{
"query":{
"match_all":{

        }
     },
     "filter":{
        "regexp":{

"couchbaseDocument.doc.uriPattern":"https\:\/\/github\.com\/.*"
}
}
}
}
}'

It matches "uriPattern":"https://github.com/x/y" and returns the result.

BUT if I pass the same string to a percolator like this:

curl -XPUT localhost:9200/_percolator/connectors/githubproject -d '{
"query": {
"regexp": {
"uriPattern": "https\:\/\/github\.com\/.*",
"flags" : "ALL"
}
}
}'

curl -XGET localhost:9200/connectors/couchbaseDocument/_percolate -d '{
"doc" : {
"uriPattern" : "https://github.com/x/y"
}
}'

It does not match. I've tested all sorts of escapings and regex queries
with special characters don't seem to work in the context of percolators.

Am I doing something wrong?

Ara.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.