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 3F1AA939E for ; Tue, 3 Jan 2012 15:41:37 +0000 (UTC) Received: (qmail 14536 invoked by uid 500); 3 Jan 2012 15:41:34 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 14481 invoked by uid 500); 3 Jan 2012 15:41:34 -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 14473 invoked by uid 99); 3 Jan 2012 15:41:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jan 2012 15:41:34 +0000 X-ASF-Spam-Status: No, hits=0.8 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FROM_STARTS_WITH_NUMS,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of 1983-01-06@gmx.net designates 213.165.64.23 as permitted sender) Received: from [213.165.64.23] (HELO mailout-de.gmx.net) (213.165.64.23) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 03 Jan 2012 15:41:28 +0000 Received: (qmail 5324 invoked by uid 0); 3 Jan 2012 15:41:07 -0000 Received: from 192.35.17.21 by www041.gmx.net with HTTP; Tue, 03 Jan 2012 16:41:06 +0100 (CET) Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" Date: Tue, 03 Jan 2012 16:41:05 +0100 From: 1983-01-06@gmx.net Message-ID: <20120103154105.35670@gmx.net> MIME-Version: 1.0 Subject: Boolean OR does not work as described To: java-user@lucene.apache.org X-Authenticated: #2828799 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 X-Provags-ID: V01U2FsdGVkX18s6bIXGRwsNe7OB/QzmfToZ4yYfKkGZhLljKtxs3 ctFuaPD+3xZKc6CBb6G8WZeToQLCeMK43/7Q== X-GMX-UID: xkRxb4tseSEqNJ5KQHQhD6Z+IGRvb4BE Hi folks, I have a query result problem I do not understand. The documentation for Lucene 3.2 query syntax says the following about boolean OR queries: "The OR operator links two terms and finds a matching document if either of the terms exist in a document. This is equivalent to a union using sets." I have performed several queries on my index and the output does not reflect the description. I always get the first-wins-set instead of a united set. These are my separate test results: 1. schluessel:23????? => 286 documents 2. vorgklasse:au AND schluessel:13????? => 2532 documents If I do: vorgklasse:au AND schluessel:13????? OR schluessel:23????? It should unite both sets and output them. I still get 2532 documents back. Exactly those from the second query. Am I not supposed to get 2532 + 286 = 2818? This is what I expect as result set. Am I missing something here? If I group the query like this (vorgklasse:au AND sch luessel:13?????) OR schluessel:23????? I do get the expected result. But both queries should be equivalent. Thanks, Mike PS: search output is avaible as CSV at request -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org