Yes, try a searcher on top of a MultiReader. But I would have thought that "A NOT B" and "A -B" were equivalent so you may other issues. If so, post again in a new thread - with details, after switching to MultiReader, if the problem persists.
-- Ian. On Mon, Nov 29, 2010 at 9:25 AM, Ganesh <emailg...@yahoo.co.in> wrote: > I am using ParallelMultiSearcher and querying more than 50 shards. I get > wrong results for query A NOT B. I am getting correct results if i query A -B. > I am also getting correct results for wildcard and fuzzy. > > What is the solution? I need to use IndexSearcher with MultiReader? > > Regards > Ganesh > > ----- Original Message ----- > From: "Robert Muir" <rcm...@gmail.com> > To: <java-user@lucene.apache.org> > Sent: Saturday, November 27, 2010 1:28 AM > Subject: Re: best practice: 1.4 billions documents > > >> On Fri, Nov 26, 2010 at 12:49 PM, Uwe Schindler <u...@thetaphi.de> wrote: >>> This is the problem for Fuzzy: each searcher expands the fuzzy query to a >>> different Boolean Query and so the scores are not comparable - MultiSearcher >>> (but not Solr) tries to combine the resulting rewritten queries into one >>> query, so every searcher has the same query. >> >> The problem is not actually any issue with FuzzyQuery, it is the >> Query.combine() with any Boolean rewrite... including AUTO as i >> mentioned earlier in this thread! >> >> AUTO starts out building a boolean rewrite... if certain magical >> conditions are hit (exceeds certain number of terms, or certain DF), >> then it switches over to a Filter. >> >> So, for example AUTO proclaims it will never hit boolean maxclauses >> exceeded exception, but it can (imagine multisearcher with 5 >> searchers, it expands to 250 each, but then after combine() this is > >> 1024). >> >> In my opinion Query.combine() is completely broken, and i don't see >> how it can really be fixed to work with arbitrary query structures >> since a query might rewrite() differently on the different searchers. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org >> For additional commands, e-mail: java-user-h...@lucene.apache.org >> > Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download > Now! http://messenger.yahoo.com/download.php > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org