M,
You ask what is better, and that is often a matter of opinion. My guess is that 
you should have that name stored in the Solr doc, so it can be in the response 
when you have a match. Oh, and I find JSON easier to work with than XML. Cheers 
-- Rick

On June 16, 2017 10:19:03 AM EDT, mganeshs <mgane...@live.in> wrote:
>Hi, 
>
>We have requirement like in the response we would like to add
>description of
>an item with item id(this field comes from solr response by default) or
>employee name along with employee id ( this is just an example use case
>). 
>
>In the solr document what we have is only item id or employee id. But
>after
>the query executes and result is returned, in the response we need to
>fill
>employee name or item name. 
>
>So we decided to customize xmlwriter and in the place of filling the
>xml
>tags, we are checking and creating the additional tag for employee name
>or
>item name. These names / additional info are read from our own read
>through
>cache which are loaded in a static block.
>
>Is there a better way/option than customizing the xmlwriter ? 
>
>Regards,
>
>
>
>--
>View this message in context:
>http://lucene.472066.n3.nabble.com/Custom-Response-writer-tp4340908.html
>Sent from the Solr - User mailing list archive at Nabble.com.

-- 
Sorry for being brief. Alternate email is rickleir at yahoo dot com 

Reply via email to