You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Omar Didi <od...@Cyveillance.com> on 2005/04/01 21:35:25 UTC

Performance Question

I have 5 indexes, each one is 6GB...I need 512MB of Heap size in order to open the index and have all type of queries. My question is, is it better to just have on large Index 30GB? will increasing the Heap size increase performance? can I store an instance of MultiSearcher(OR just Searcher in case on big index is better) in the application variable since I have 3 servlets that opens the index? would implementing a listner to open the index would be useful knowing that the index changes onece a mounth?
any suggestions would be very helpful, 
Thanks,
omar

-----Original Message-----
From: Erik Hatcher [mailto:erik@ehatchersolutions.com]
Sent: Friday, April 01, 2005 1:29 PM
To: java-user@lucene.apache.org
Subject: Re: FilteredQuery and Boolean AND


Peter,

Could you provide a straight-forward test case that indexes a few 
documents into a RAMDirectory and demonstrates the problem you're 
having with AND'd FilteredQuery's?

Give me something concrete and simple and I'll dig into it further.

	Erik

On Apr 1, 2005, at 11:13 AM, Kipping, Peter wrote:

> Any ideas on this?  I have purchased your book, Lucene in Action, which
> is quite good.  To make things easier, consider the example on p212.  
> In
> item 4, when you combine the queries, what happens you combine them in
> and AND fashion?  The book only has OR, which works.  Although it may
> work since the book only has one filtered query, but what if you made
> them both filtered queries and ANDed them?
>
> Thanks,
> Peter
>
> -----Original Message-----
> From: Kipping, Peter [mailto:Peter.Kipping@taylorandfrancis.com]
> Sent: Friday, March 25, 2005 10:34 AM
> To: java-user@lucene.apache.org
> Subject: FilteredQuery and Boolean AND
>
> I have the following query structure:
>
> BooleanQuery q2 = new BooleanQuery();
> TermQuery tq = new TermQuery(new Term("all_entries", "y"));
> FilteredQuery fq = new FilteredQuery(tq, ft);
> FilteredQuery fq2 = new FilteredQuery(tq, ft2);
> q2.add(fq, false, false);
> q2.add(fq2, false, false);
>
> The two filters are searches over numeric ranges.  I'm using filters so
> I don't get the TooManyBooleanClauses Exception.  And my TermQuery tq 
> is
> just a field that has 'y' in every document so I can filter over the
> entire index.  The last two lines I am creating a boolean OR, and
> everything works fine.  I get back 30 documents which is correct.
>
> However when I change the last two lines to create an AND:
>
> q2.add(fq, true, false);
> q2.add(fq2, true, false);
>
> I still get back 30 documents, which is not correct.  It should be 0.
> What's going on with FilteredQuery?
>
> Thanks,
> Peter
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org