On 5/30/06, maustin75 <[EMAIL PROTECTED]> wrote:
I'm doing a search based on price and was wondering what the performance
difference would be between these two queries:

1) +price:[0 TO 20]
2) +price:4567

Basically, to do a search with a range or pre-determine the range and do a
search based on an id?

The same speed if they are in Solr's cache :-)
Range query will be slightly slower, but if it becomes a bottleneck or
not depends on the total complexity of the queries/requests.

It would be easier to set up with a range, however I
don't want to lose performance.

Start with the more flexible range query and only optimize if
necessary.  Both should be relatively quick.

-Yonik

Reply via email to