Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DF39F9CD0 for ; Wed, 5 Oct 2011 09:33:08 +0000 (UTC) Received: (qmail 49139 invoked by uid 500); 5 Oct 2011 09:33:06 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 48988 invoked by uid 500); 5 Oct 2011 09:33:06 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 48980 invoked by uid 99); 5 Oct 2011 09:33:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Oct 2011 09:33:06 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ian.lea@gmail.com designates 209.85.210.176 as permitted sender) Received: from [209.85.210.176] (HELO mail-iy0-f176.google.com) (209.85.210.176) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Oct 2011 09:33:01 +0000 Received: by iabz7 with SMTP id z7so2307910iab.35 for ; Wed, 05 Oct 2011 02:32:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=Z5eVmeKXHUYpZJb4+CkxhAzzUYOAj5UmjfFa5OLrK7k=; b=AIr4gt75BcFhzafB6iMkTMtXk9ar/CrF279dwIosRhwXigUMZnocGWpyJV89hOWQ0S lDK8lD603Wk8mwyZp3jLljdZ3E1XgmwZNaKCU/+05v0yGMNrrSsmFLEs1NtiX5Qe2AxL wH4qgD/bM93dFsAjc8uQOzpraWiwJPRTnguoM= Received: by 10.231.9.1 with SMTP id j1mr4023004ibj.19.1317807161082; Wed, 05 Oct 2011 02:32:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.104.130 with HTTP; Wed, 5 Oct 2011 02:32:21 -0700 (PDT) In-Reply-To: <4E8C0A81.6090107@yahoo.de> References: <4E8C0A81.6090107@yahoo.de> From: Ian Lea Date: Wed, 5 Oct 2011 10:32:21 +0100 Message-ID: Subject: Re: How is Number of Boolean Clauses calculated - Minimum Should Match? To: java-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 It will work on the query, whether produced by a query parser or constructed in code. I don't see that the number of clauses will change if you are applying filters. Filters are not query clauses, although it can get confusing if you start using stuff like FilteredQuery or QueryWrapperFilter. -- Ian. On Wed, Oct 5, 2011 at 8:42 AM, Em wrote: > Hello list, > > in what way does BooleanQuery calculates the number of its clauses? Is > this number based on the analyzed query or based on the raw query-string? > > Imagine you got a StopFilter or a SynonymFilter applied to a > BooleanQuery during analyzing - the number of clauses could shrink or > increase. > > I remind that in connection with the MinimumShouldMatch-param there may > occur problems if you query fields with an applied StopFilter and some > fields without. > > I tried to answer a question on mailinglists and noticed that I am > relatively unsure about how MM is calculated in general and how > especially in Solr (since I am not sure, I am a little bit confused when > I made a code review). > > Thank you! > > Regards, > Em > > --------------------------------------------------------------------- > 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