Re: Minor bug with Solritas and price data

2010-06-21 Thread Ken Krugler
On Jun 19, 2010, at 7:48pm, Erik Hatcher wrote: That's not a bug with the example schema, as price is a single- valued field. getFirstValue will work, yes, but isn't necessary when it's single valued. If you've got multiple prices, you probably want something like: #foreach($price in

Re: Minor bug with Solritas and price data

2010-06-21 Thread Chris Hostetter
: Here's what's in my schema: : : field name=price type=float indexed=true stored=true/ : : Which is exactly what was in the original example schema. but what does hte version property of your schema say (at the top) this is what's in the example... schema name=example version=1.3 !--

Re: Minor bug with Solritas and price data

2010-06-21 Thread Ken Krugler
Hi Hoss, You're the man. I'd copied/pasted the 1.3 schema fields into my testbed schema, which was based on the version of Solr we were using back in the Dark Ages, when the version was 1.0 (and there was no such handy comment warning about changing the version :)) So fields were

Re: Minor bug with Solritas and price data

2010-06-19 Thread Erik Hatcher
That's not a bug with the example schema, as price is a single-valued field. getFirstValue will work, yes, but isn't necessary when it's single valued. If you've got multiple prices, you probably want something like: #foreach($price in $doc.getFieldValue('price'))$!