Lucene.Net memory consumption and slow search when too many clauses used

Posted by Umer on Stack Overflow See other posts from Stack Overflow or by Umer
Published on 2010-06-18T13:58:29Z Indexed on 2010/06/18 14:03 UTC
Read the original article Hit count: 304

I have a DB having text file attributes and text file primary key IDs and indexed around 1 million text files along with their IDs (primary keys in DB).

Now, I am searching at two levels. First is straight forward DB search, where i get primary keys as result (roughly 2 or 3 million IDs)

Then i make a Boolean query for instance as following

+Text:"test*" +(pkID:1 pkID:4 pkID:100 pkID:115 pkID:1041 .... )

and search it in my Index file.

The problem is that such query (having 2 million clauses) takes toooooo much time to give result and consumes reallly too much memory....

Is there any optimization solution for this problem ?

© Stack Overflow or respective owner

Related posts about optimization

Related posts about lucene.net