Term query question


(erik.seilnacht@mulesoft.com) #1

I have an indexed document like this:

{
"_index" : "ion",
"_type" : "erik",
"_id" : "tSYlpvzBSvaD5RBInq4_Qg",
"_score" : 7.800599, "source" : {"message":{"text":"Scheduler scheduler$_NON_CLUSTERED started."},"timestamp":"2011-06-24T22:16:55.532Z","priority":"INFO","fields":{"domain":"erik","serverId":"2ae3e122-6c52-41ce-a11f-75502e744898"}}
}

When I run a term query on the fields.domain field, I see results...

{ "query" : { "term" : { "fields.domain" : "erik"} } }

However, when I run a term query on the fields.serverId field, I get nothing...

{ "query" : { "term" : { "fields.serverId" : "2ae3e122-6c52-41ce-a11f-75502e744898"} } }

Any suggestions?

Thanks,

-Erik


(erik.seilnacht@mulesoft.com) #2

I see the field is split on the dashes...

I can remove them, or it sounds like I may be able to get around this with a custom mapping for this field ?

Thanks,

-Erik


(system) #3