: 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. 

FWIW: i'm not sure if by "omit these items" you really mean "don't include 
them in the results at all" .. in which case a simple "fq" will help 
eliminate them, but this is exactly the motivation for the 
"sortMissingLast" and "sortMissingFirst" options (which are obviously 
mutually exclusive)

that way if someone searches for all products matching "iphone" you can 
correctly tell them there are are 274, even if you only have pricing data 
for 33 of them -- and no matter what direction they sort (price low-high 
or price high-low) the 241 w/o prices will be at the end of the list.


-Hoss

Reply via email to