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 9B861420D for ; Wed, 25 May 2011 09:52:07 +0000 (UTC) Received: (qmail 18824 invoked by uid 500); 25 May 2011 09:52:05 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 18774 invoked by uid 500); 25 May 2011 09:52:05 -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 18766 invoked by uid 99); 25 May 2011 09:52:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 May 2011 09:52:05 +0000 X-ASF-Spam-Status: No, hits=3.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of zhoucheng2008@gmail.com designates 209.85.160.48 as permitted sender) Received: from [209.85.160.48] (HELO mail-pw0-f48.google.com) (209.85.160.48) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 May 2011 09:51:55 +0000 Received: by pwi16 with SMTP id 16so4826394pwi.35 for ; Wed, 25 May 2011 02:51:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:subject:date:message-id:mime-version :content-type:x-mailer:thread-index:content-language; bh=HbcM91gF+sFAGZbimALpj1NIdrmLjR4uYEdfjrl4TQ8=; b=n4CsWaPgFRdNKmpTTGVe7OWeY8GgTq/an4EeXDbg8IHoRebHU8AxT/mD4XbTHavKab Dpeg4fKYB/h9nhKWe1FudYS+7rkeuXXO1a4UNdrF/IQ+CH6u0wRotsMb7Wu6sTQl8TsF NQQz0CFqcfHEUFJAIgq3e3+WcHgrbiWkGEPho= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:mime-version:content-type:x-mailer :thread-index:content-language; b=Pb47QBDwuiiZnnPPpbtsHH9zcRM+GC2dJA7SpbzyNcfCLwV4H13IQw32ipz0czp/yD F6AnNoXCDlGIbktfGlYbjN+EDPRT6hOn0OYPEbAM56KJsOi8ule+nH7YX/D18pzf+oIy EkQX+tSDR2NtyAsev1RHd/fkrEoSEyWaVECDw= Received: by 10.68.16.201 with SMTP id i9mr3313943pbd.378.1306317094476; Wed, 25 May 2011 02:51:34 -0700 (PDT) Received: from zcdyPC ([125.123.75.253]) by mx.google.com with ESMTPS id m4sm5579837pbb.78.2011.05.25.02.51.31 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 25 May 2011 02:51:33 -0700 (PDT) From: "zhoucheng2008" To: Subject: how to search multiple fields Date: Wed, 25 May 2011 17:51:28 +0800 Message-ID: <013301cc1ac1$561bbb10$02533130$@com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0134_01CC1B04.643EFB10" X-Mailer: Microsoft Office Outlook 12.0 thread-index: AcwawVGLAxm+NGbTSyevFlsLPAEx6g== Content-Language: en-us X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPart_000_0134_01CC1B04.643EFB10 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, Quite a few Lucene examples on lines shows how to insert multiple fields into a Document and how to query the indexed file with certain fields and queried text. I would like to know: 1. How to do a cross-field search? 2. How to specify some key fields as well as some less important fields? 3. How many fields would cause performance issue? Thanks! ------=_NextPart_000_0134_01CC1B04.643EFB10--