Querying inside fields of an object

I am having a problem determining what the correct mapping is for the
search behavior I want. I want to query ?q=a.b:stuff and get results for
"stuff" inside of a.b.value1 and a.b.value2. What I need is basically a
field wildcard search ?q=a.b.*:stuff to find the string "stuff" in any
field or child object's field inside of a.b. A sample mapping of my data
is below.

{
"mappings":{
"objFoo":{
"_all":{
"enabled":true
},
"properties":{
"a":{
"properties":{
"b":{
"properties":{
"value1":{
"type":"string"
},
"value2":{
"type":"string"
}
}
}
}
}
}
}
}
}

How can I find a string in the value1 or value2 fields by querying a.b?

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

So I got it working temporarily by using an escaped wildcard on the field:

?q=a.b.*:stuff

This will probably work for my needs, but it would be awesome to get
?q=a.b:stuff working (without the field wildcard) if possible.

On Tuesday, April 2, 2013 12:27:10 AM UTC-4, thesu...@gmail.com wrote:

I am having a problem determining what the correct mapping is for the
search behavior I want. I want to query ?q=a.b:stuff and get results for
"stuff" inside of a.b.value1 and a.b.value2. What I need is basically a
field wildcard search ?q=a.b.*:stuff to find the string "stuff" in any
field or child object's field inside of a.b. A sample mapping of my data
is below.

{
"mappings":{
"objFoo":{
"_all":{
"enabled":true
},
"properties":{
"a":{
"properties":{
"b":{
"properties":{
"value1":{
"type":"string"
},
"value2":{
"type":"string"
}
}
}
}
}
}
}
}
}

How can I find a string in the value1 or value2 fields by querying a.b?

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