Re: Capture facets and its values in output and modify them

2016-02-27 Thread Mark Robinson
Hi Binoy, Greatly appreciate your quick response. Both posts were very helpful. Thanks! Mark On Sat, Feb 27, 2016 at 3:31 AM, Binoy Dalal wrote: > Here's the code snippet for highlighting but you just replace highlighting > with 'facet' adn do what you want with it. > > public void process(Res

Re: Capture facets and its values in output and modify them

2016-02-27 Thread Binoy Dalal
Here's the code snippet for highlighting but you just replace highlighting with 'facet' adn do what you want with it. public void process(ResponseBuilder arg0) throws IOException { NamedList nl = arg0.rsp.getValues(); SimpleOrderedMap sop = (SimpleOrderedMap) nl.get("highlighting");

Re: Capture facets and its values in output and modify them

2016-02-27 Thread Binoy Dalal
Take a look here: https://github.com/lttazz99/SolrPluginsExamples/blob/master/src/main/java/component/ComponentDemo.java I've uploaded an example of writing a search component. All you have to do is get the facet object from the solr response and then work in it. I have done something similar with

Capture facets and its values in output and modify them

2016-02-27 Thread Mark Robinson
Hi, I have a requirement to capture facet fields in the output and append an additional data to each of the facet values before the final output (along with the results as well as the facets and values) is send back so that a middle layer can use this additional value added. I read that a custom s