You also don't /need/ to put in a price in the index. If something doesn't have a value for a field, you can just not send the field. Then sorting won't be thrown off by the dummy value. Then those documents simply won't have a "price" field.

Of course, if you need to facet on it or query it or anything like that you can't do this..

Thanks for your time!

Matthew Runo
Software Engineer, Zappos.com
[EMAIL PROTECTED] - 702-943-7833

On Nov 26, 2008, at 9:09 AM, Erick Erickson wrote:

Assuming you know you want to do this at query time, couldn't
you just add a -price:0 clause to your query?

Best
Erick

On Wed, Nov 26, 2008 at 11:00 AM, joeMcElroy <[EMAIL PROTECTED]> wrote:


im sure this is an easy question but...

when a product doesn't have a price, I index the price as 0. When sorting
on
price, these values come up first or last. How can you omit these items
when
sorting against price.

thanks

joe
--
View this message in context:
http://www.nabble.com/omiting-no-price-documents-when-sorting-on-price-tp20703795p20703795.html
Sent from the Solr - User mailing list archive at Nabble.com.



Reply via email to