You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Kenny Lee <sh...@gmail.com> on 2008/08/01 04:33:23 UTC
Individual query limits for each search field value
Hi Guys,
Let's say i need a query to get the cheapest beef prices in US cities,
So,
select?q=cities=NYC,LAS,MIA,SFO&limit=50
Problem is there may be more than 50 prices in NYC alone, thus for the rest
of the cities like LAS,MIA,SFO, the results might not be returned.
Is there a way to limit the results of each city to let's say 10, via
solr/lucene query, or would i have to make separate calls for each city,
with the limit 10 like
select?q=cities=NYC&limit=10
select?q=cities=LAS&limit=10
select?q=cities=MIA&limit=10
select?q=cities=SFO&limit=10
Best Wishes,
Kenny