lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kenny Lee" <shev...@gmail.com>
Subject Individual query limits for each search field value
Date Fri, 01 Aug 2008 02:33:23 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message