On Wednesday, December 10, 2014 4:33:12 PM UTC-3, [email protected] 
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 [email protected].
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.

Reply via email to