lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler" <>
Subject RE: Boolean query with 50,000 clauses! Possible? Scalable?
Date Tue, 28 Jul 2009 16:17:49 GMT
Hi Dado,

> However, that you are suggesting is to query the author index (for example
> for authors weighing more than 200lbs) and then for each author query the
> book index with the author name. The problem is: the author query could
> return tens if not hundreds of thousands author names. It would be
> unreasonable to loop through each one of them and start a query to the
> book
> index at each step.

You misunderstood me here. I meant an index for authors, if the search
results the use should get displayed are authors and the user (may) then
click on one author and display all books.
In your case I would add this weight value also to the books index: e.g. in
field name "author-weight" (and use the new NumericField from Lucene 2.9 for
it, this value is then also denormalized). Author names are in "author-name"
and so on. And then a simple NumericRangeQuery on this field.

I was wondering whether solr/lucene allows for this
> sort
> of intersections to be done at the server level, not at the client level.
> What I would like to see in lucene/solr is to query an index with an a
> large
> array of values for a specific field (in this case something like
> "book.author_name IN ([,, ...,])"
> the
> author name array being the result of a "subquery/nested query" that could
> return a large number of hits.

Subqueries or joins are not possible per se. You should always denormalize

> Thanx for your help and consideration,
> Dado
> --
> View this message in context:
> 50%2C000-clauses%21-Possible--Scalable--tp24664839p24702697.html
> Sent from the Lucene - General mailing list archive at

View raw message