Hello,

I'm using solr 4.10.
I'd like to know if it is possible to add a field only on query response and
calculate its' value for the specific query.

For example:
Assume this is the document.
<doc>
<Id>1</Id>
<Type>Toys</Type>
<Price>55</Price>
</doc>

I would like the response to contain another field which its' value to be
calculates from the value of 'price' and a given variable.
The field's value can be change from query to query and shouldn't be
indexed.

Is it possible to run a query and create a new field 'price_sale' on
runtime?

Thanks in advance,
Maya
Is there a way to do this on solr? 



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Adding-field-to-query-result-tp4216396.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to