Hello,
I'm having trouble coming up with how to supply a field within a nested
object in the multi_match fields list. I'm using the multi_match query in
order to perform query time field boosting, but something like:
"query": {
"multi_match": {
"query": "China Mieville",
"operator": "and",
"fields": [
"_all", "title^2", "author.name^1.5"
]
}
}
doesn't seem to work. the title is boosted fine but in fact if i take out
the "_all" field then i can see that author.name is never being used. is
there a way to supply nested fields within a multi_match query?
-Mike
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CALdNed%2B4VHQZE%2B%3DCqihZtH223DXR5MR9u49%2BessQ6ybpYbB%3DNg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
On Monday, August 11, 2014 1:29:56 PM UTC-4, Mike Topper wrote:
Hello,
I'm having trouble coming up with how to supply a field within a nested
object in the multi_match fields list. I'm using the multi_match query in
order to perform query time field boosting, but something like:
"query": {
"multi_match": {
"query": "China Mieville",
"operator": "and",
"fields": [
"_all", "title^2", "author.name^1.5"
]
}
}
doesn't seem to work. the title is boosted fine but in fact if i take out
the "_all" field then i can see that author.name is never being used. is
there a way to supply nested fields within a multi_match query?
I've just been bit by this too. Anyone know how to make this work?
Thanks.
-Tom
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/79272696-3745-4ce7-93e3-44d5b4cdd75e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Wednesday, December 10, 2014 4:33:12 PM UTC-3, thomas....@beatport.com
wrote:
On Monday, August 11, 2014 1:29:56 PM UTC-4, Mike Topper wrote:
Hello,
I'm having trouble coming up with how to supply a field within a nested
object in the multi_match fields list. I'm using the multi_match query in
order to perform query time field boosting, but something like:
"query": {
"multi_match": {
"query": "China Mieville",
"operator": "and",
"fields": [
"_all", "title^2", "author.name^1.5"
]
}
}
doesn't seem to work. the title is boosted fine but in fact if i take
out the "_all" field then i can see that author.name is never being
used. is there a way to supply nested fields within a multi_match query?
I've just been bit by this too. Anyone know how to make this work?
In our case we switched the mapping type from "nested" to "object" and then
this worked. I'm aware of the implications of this switch. We don't need
the features provided by "nested". Others may, of course.
Thanks.
-Tom
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/857a9674-4661-4730-9ec8-79ba3426a603%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.