Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 29100 invoked from network); 15 Oct 2008 17:42:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Oct 2008 17:42:11 -0000 Received: (qmail 73838 invoked by uid 500); 15 Oct 2008 17:42:06 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 73482 invoked by uid 500); 15 Oct 2008 17:42: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 73471 invoked by uid 99); 15 Oct 2008 17:42:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Oct 2008 10:42:05 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of almeidaraf@gmail.com designates 209.85.198.239 as permitted sender) Received: from [209.85.198.239] (HELO rv-out-0506.google.com) (209.85.198.239) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Oct 2008 17:40:59 +0000 Received: by rv-out-0506.google.com with SMTP id f6so2711620rvb.5 for ; Wed, 15 Oct 2008 10:41:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=/MClv1fly3SRFHTbol2x6dp0Vtal+as8Jhf7PNhwPQk=; b=xVvS2dqOXgoH6qRytLmmCfw2FVzHwFczjTyxF4rnPozirfk64MeQ0B+STpdZY9Tv3N igozxy0vNsVZvS2tJolGhE+QAtMCehlKmQjHszeJLF+ts0v3UQ3IyUFcQjNvO5zoYZEA wmIpPV0MBSO09JN/7+0PNHi2t0gnHCHG95Ews= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=DVMcI1r+EbdNx9r8rxU5RFSuvFWIRe1aEx9kWlKy8L3JZ/Rnt09Rx/aN2dubGnyQBV aMU6YCMMr7FWt6J5iE4Lyg82G1ZKgR8xNaF8A3zXJH5HFuQbE01ffskN5a27K5BI1qaQ AHqKUGN0HmhB+THmmIjhdj9bBz+6zO8Kl0KKc= Received: by 10.141.44.13 with SMTP id w13mr915175rvj.13.1224092487468; Wed, 15 Oct 2008 10:41:27 -0700 (PDT) Received: by 10.141.66.11 with HTTP; Wed, 15 Oct 2008 10:41:27 -0700 (PDT) Message-ID: <6de6b1650810151041k3156654dyaf16887cc12c4311@mail.gmail.com> Date: Wed, 15 Oct 2008 15:41:27 -0200 From: "Rafael Almeida" To: java-user@lucene.apache.org Subject: Fields with the same name MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org I didn't quite understand the Document documentation so well, the documentation says: "Adds a field to a document. Several fields may be added with the same name. In this case, if the fields are indexed, their text is treated as though appended for the purposes of search." Would doc.add(new Field("foo", "bar1" + "bar2", Field.Store.YES, Field.Index.ANALYZED)); be different in any way than doc.add(new Field("foo", "bar1", Field.Store.YES, Field.Index.ANALYZED)); doc.add(new Field("foo", "bar2", Field.Store.YES, Field.Index.ANALYZED)); ? --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org