Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 40297 invoked from network); 14 Feb 2011 18:46:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Feb 2011 18:46:06 -0000 Received: (qmail 928 invoked by uid 500); 14 Feb 2011 18:46:04 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 642 invoked by uid 500); 14 Feb 2011 18:46:01 -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 634 invoked by uid 99); 14 Feb 2011 18:46:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Feb 2011 18:46:00 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,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 oren.liat@gmail.com designates 209.85.216.48 as permitted sender) Received: from [209.85.216.48] (HELO mail-qw0-f48.google.com) (209.85.216.48) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Feb 2011 18:45:54 +0000 Received: by qwe4 with SMTP id 4so3453619qwe.35 for ; Mon, 14 Feb 2011 10:45:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=DHvE7yFJ4Ec8i8pRYuhds+wNO3G5ITebAoydOribDo4=; b=qBG8ZKn3ZncmFXhiKQlcbf2801uhQT7jzleLKdXSKymSkpEYYO0PzVnGsVo5IloBYN E96duz4MMarX+BA0VxRu0OCbKqqGeutV4L53wpp1ccmFg/LbIxQ8gLU6zH/sI/XlvKWa PiGW0ZLNSVxhM/EWw2jCavU49WvNVQK7wNjI0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=XtBUDMtnQkRE3yaEHUJmm89HBZLsiBLZYZAJE8aBHCYxrHBlJkxV0xUxead3X9HEXZ pRz4fBZKHQXLYWJJ0ixbNNqEkHd3EJ7yzjVCCRkDKwQ31XMsnmNNh11qbASvkF3QJbB3 EvapimP+ZKjZtvq8WkC8gzcd8kWbw94roGZv8= MIME-Version: 1.0 Received: by 10.229.235.69 with SMTP id kf5mr3298842qcb.49.1297709133434; Mon, 14 Feb 2011 10:45:33 -0800 (PST) Received: by 10.229.10.20 with HTTP; Mon, 14 Feb 2011 10:45:33 -0800 (PST) In-Reply-To: References: Date: Mon, 14 Feb 2011 13:45:33 -0500 Message-ID: Subject: Re: Search in multiple indexes which have differnt field name From: liat oren To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=00163630f98beba1b9049c427314 --00163630f98beba1b9049c427314 Content-Type: text/plain; charset=ISO-8859-1 Ok, thanks a lot ! I will try that On 14 February 2011 13:25, Anshum wrote: > Hi Liat, > You could use open a multi/parallelmultisearcher on the indexes that you > have and then construct an OR query e.g. (contents:A OR text:A) > I am assuming that the field names do not overlap. If that is not the case > then you'd need another solution. > > -- > Anshum Gupta > http://ai-cafe.blogspot.com > > > On Mon, Feb 14, 2011 at 11:52 PM, liat oren wrote: > > > Hey All, > > > > I try to construct a boolean query that has to run on 3 different set of > > indexes: > > in two of them, it should query a field name "contents" and in one of > them, > > it should query a field named "text". > > How can I use MultiSearcher to support this structure? > > > > Thanks a lot, > > Liat > > > --00163630f98beba1b9049c427314--