Re: manipulate the results coming back from SOLR? (was: possible to do arithmetic on returned values?)

2011-12-13 Thread Erick Erickson
Erik hatcher wrote you a comment assuming you were
using Velocity. The more generic form of that comment is
that this is an app-level issue by and large. Solr is in charge
of searching and returning data, the app is a better place
to change that into something pretty...

Best
Erick

On Mon, Dec 12, 2011 at 9:37 AM, Gabriel Cooper gabriel.coo...@jtv.com wrote:
 I'm hoping I just got lost in the shuffle due to posting on a Friday night.
 Is there a way to change a field's data via some function, e.g. add,
 subtract, product, etc.?


 On 12/9/11 4:17 PM, Gabriel Cooper wrote:

 Is there a way to manipulate the results coming back from SOLR?

 I have a SOLR 3.5 index that contains values in cents (e.g. 100 in the
 index represents $1.00) and in certain contexts (e.g. CSV export) I'd
 like to divide by 100 for that field to provide a user-friendly in
 dollars number. To do this I played around with Function Queries for a
 while without realizing they're limited to relevancy scores, and later
 found DocTransformers in 4.0 whose description sounded right but don't
 exist in 3.5.

 Is there anything else I haven't considered?

 Thanks for any help

 Gabriel Cooper.




manipulate the results coming back from SOLR? (was: possible to do arithmetic on returned values?)

2011-12-12 Thread Gabriel Cooper
I'm hoping I just got lost in the shuffle due to posting on a Friday 
night. Is there a way to change a field's data via some function, e.g. 
add, subtract, product, etc.?



On 12/9/11 4:17 PM, Gabriel Cooper wrote:

Is there a way to manipulate the results coming back from SOLR?

I have a SOLR 3.5 index that contains values in cents (e.g. 100 in the
index represents $1.00) and in certain contexts (e.g. CSV export) I'd
like to divide by 100 for that field to provide a user-friendly in
dollars number. To do this I played around with Function Queries for a
while without realizing they're limited to relevancy scores, and later
found DocTransformers in 4.0 whose description sounded right but don't
exist in 3.5.

Is there anything else I haven't considered?

Thanks for any help

Gabriel Cooper.