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 <
vincent.vanderw...@gmail.com> 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 elasticsearch+unsubscr...@googlegroups.com.
> 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 elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAGCwEM-bjrdmxRgB-kZWg6Yk82HVKgvAa4ax_Cz7uZdiCGbBDA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to