Weird problems when filtering on the string "?"

Hi,

In my application (running ES 0.90.1) I fill a field sometimes with "??" to
indicate no specific value.

During query I do a filter like
{
"filter": {
"term": {
"lc": "??"
}
},
"query": {
....
}

Allthough the query itself has many hits, it returns nothing due to the
filter. However, many results in the resultset contain "??" is their
lc-field.
I can filter on any value, but it seems that only "??" fails.

If I replace the "??" by "__" (both in the query as in the data),
everything works fine.

I also tried to use a scripted filter like

"filter": {
"script": {
"script": "doc['lc'].value =='??'"
}
},

It doesn't work either.

Any ideas why this is?

--
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.

Hola, never mind....

Its a HEAD thingy.
I did an analyze in HEAD with the "??" and it returned: "jQuery16107912836952600628_1373270103804"
as a token...

Thanks,
Peter

Op maandag 8 juli 2013 13:11:58 UTC+2 schreef Peter van der Weerd het
volgende:

Hi,

In my application (running ES 0.90.1) I fill a field sometimes with "??"
to indicate no specific value.

During query I do a filter like
{
"filter": {
"term": {
"lc": "??"
}
},
"query": {
....
}

Allthough the query itself has many hits, it returns nothing due to the
filter. However, many results in the resultset contain "??" is their
lc-field.
I can filter on any value, but it seems that only "??" fails.

If I replace the "??" by "__" (both in the query as in the data),
everything works fine.

I also tried to use a scripted filter like

"filter": {
"script": {
"script": "doc['lc'].value =='??'"
}
},

It doesn't work either.

Any ideas why this is?

--
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.