Evgeniy - sound like a problem best suited for RDBMS, really.

You can run such an OR query, but you'll have to manually increase the max 
number of clauses allowed (in one of the configs) and make sure the JVM has 
plenty of memory.  But again, this is best done in RDBMS with some count(*) and 
GROUP BY selects.

Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch

----- Original Message ----
From: Evgeniy Strokin <[EMAIL PROTECTED]>
To: Solr User <solr-user@lucene.apache.org>
Sent: Thursday, January 10, 2008 4:39:44 PM
Subject: Big number of conditions of the search

Hello, I don't know how to formulate this right, I'll give an example:
I have 20 millions documents with unique ID indexed.
I have list of IDs stored somewhere. I need to run query which will
 take documents with ID from my list and gives me some statistic. 
For example: my documents are addresses with unique ID. I have list
 which contains 10 thousand IDs of some addresses. I need to find how many
 addresses are in NJ from my list? Or another scenario: give me all
 states my addresses from and how many addresses in each state (only
 addresses from my list)?
 
So I was thinking I could run facet search by field "State", but my
 query would be like this: ID:123 OR ID:23987 OR ID:294343 .... 10K such OR
 conditions in a row, which is ridicules and not even possible I think.
 
Could somebody suggest some solution for this?
 
Thank you
Gene


Reply via email to