Percolate and Query Strings

Hi,

What is the correct way to add a query string to a percolator. For example,
this is one that is working fine with only filters:

{
"_index": "_percolator",
"_type": "document",
"_id": "0e63ed80-fc58-11e1-9857-f17a6fbf875a",
"_version": 1,
"exists": true,
"_source": {"query": {
"filtered": {
"query": {
"match_all": {}
},
"filter": {
"and": [
{"missing": {"field": "redirect"}},
{"term": {"field": "value"}}
]}
}}}
}

But this one doesn't work:

{
"_index": "_percolator",
"_type": "document",
"_id": "4984ebe0-fc65-11e1-a1c7-8bc204bcd862",
"_version": 1,
"exists": true,
"_source": {"query":
{"filtered": {
"query": {
"query_string": {"query": "some query"}
},
"filter": {
"and": [
{"missing": {"field": "redirect"}},
{"term": {"field": "value"}}
]}
}
}
}
}

The query by itself is producing results.

Is it even possible to use a percolate with a query string?

Christoph

--

No hints anyone?

--

Hi

What is the correct way to add a query string to a percolator. For
example, this is one that is working fine with only filters:

The query by itself is producing results.

Is it even possible to use a percolate with a query string?

Yes it is. I suggest you gist a curl recreation of the whole problem so
that we can see exactly what is happening. Much easier to test when we
can just copy and paste

clint

--