I have a dynamic template that sets up not_analyzed raw mappings for all my 
string fields. 

When I perform a query search like this: 
field.raw=KnownValue
it works (has hits).

When I do this: 
field.raw=Known?alue
it doesn't return any data (? wildcard doesn't work).

However, 
field.raw=*
does return data.

What am I missing? Does it have to do with case-sensitivity?

Here is the dynamic template:
{
    "string_fields": {
        "mapping": {
            "index": "analyzed",
            "type": "string",
            "fields": {
                "raw": {
                    "index": "not_analyzed",
                    "ignore_above": 256,
                    "doc_values": true,
                    "type": "string"
                }
            }
        },
        "match": "*",
        "match_mapping_type": "string"
    }
}

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/1a6d1de1-c08a-40f5-96f9-26f7a217b7b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to