Hi Alex

It's not the document id. There's 2 fields in the row for example 

vinny, viking
alexander, great

I would like to get the results for the terms facet and another field in 
the row

eg.

viking 1 (I also need vinny)
great 1 (I also need alexander)

Does this makes sense ?

Vinny

On Tuesday, 14 January 2014 11:13:31 UTC, Alexander Reelsen wrote:
>
> Hey,
>
> I am not sure I can follow your requirement. Cam you describe what you 
> actually mean with an associated id? What is it associated with? A 
> document? An index?
>
> If you want to get the document ids, which actually were part of a facet 
> bucket, this is not possible with facets and you might need to execute 
> another query.
>
>
> --Alex
>
>
>
> On Thu, Jan 9, 2014 at 11:55 AM, Vincent van der walt <
> [email protected] <javascript:>> wrote:
>
>> Hi, 
>>
>> I'm wondering if anyone could help me.
>>
>> We're doing a terms facet on a field which works fine. However I'm trying 
>> to also return the corresponding id of that field so I can provide click 
>> through functionality on my grid.
>>
>> eg index = fieldid,fieldname
>>
>> if I do a termsfacet I get
>>
>> field1 10
>> field2 34
>> field3 50
>>
>> but I'd like to return the id too rather than do another search and merge 
>> ( very inefficient since I'm dealing with large amounts of data). Composite 
>> fields won't work for us since I'll have to constantly rebuild the index. 
>> the terms I'm using can be very dynamic.
>>
>> Is this possible ?
>>
>> Thanks
>>
>> Vinny
>>
>>
>>
>>
>>  -- 
>> 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] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/elasticsearch/4317dae0-690b-4205-a5f7-ea8e5908661d%40googlegroups.com
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
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/4f85c81c-c2c1-47c5-8dd8-c2894223f905%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to