Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 24998 invoked from network); 14 Nov 2008 07:50:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Nov 2008 07:50:16 -0000 Received: (qmail 78805 invoked by uid 500); 14 Nov 2008 07:50:16 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 78776 invoked by uid 500); 14 Nov 2008 07:50:16 -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 78765 invoked by uid 99); 14 Nov 2008 07:50:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Nov 2008 23:50:16 -0800 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 mouryaravi@gmail.com designates 209.85.142.188 as permitted sender) Received: from [209.85.142.188] (HELO ti-out-0910.google.com) (209.85.142.188) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Nov 2008 07:48:55 +0000 Received: by ti-out-0910.google.com with SMTP id b8so904056tic.11 for ; Thu, 13 Nov 2008 23:49:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date :x-mailer; bh=tWqGbYvDtsbMK00tExnQ1O8M++yYpwluXWrJRYq6DJc=; b=KMK9prFcUwkS5AA2wRjyqVk+4tvy0GzmKE3K7FQLbaGhW1RGlwcr4oUl42hNqfXBZI 1KWEBIXM5BewZYpoxQrAzELnQJWV8/kYet2JtazOPSngqhbg2PBwgCd1LGnhJrFFAykw XRwfFOedgjX7MMg9y7dVQKSP6Hp0Uj5DTiud4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:x-mailer; b=YPXSFwLYgRLocL/jaIaVyExfxXgLERHM4d5fkDb4H9jdpUOsw9EKQf3+iwo3vTUGHm c/KpxM1BhZdTJ3u5zkfREvfSYT/jUzINFixLO6eLn/b9+BK/thODPalIGrkf66jfqWMQ 2phPInlgghQsR+ipl4ZiqWSqBRd7qHjTNsZUE= Received: by 10.110.109.12 with SMTP id h12mr712808tic.56.1226648978369; Thu, 13 Nov 2008 23:49:38 -0800 (PST) Received: from ?117.195.133.164? ([117.195.133.164]) by mx.google.com with ESMTPS id d1sm906449tid.15.2008.11.13.23.49.34 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 13 Nov 2008 23:49:37 -0800 (PST) Message-Id: <85E2F8AA-2469-4A3C-8A9A-A9CCD9D2218B@gmail.com> From: Ravi L To: java-user@lucene.apache.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v928.1) Subject: Storing part of the field Date: Fri, 14 Nov 2008 13:19:24 +0530 X-Mailer: Apple Mail (2.928.1) X-Virus-Checked: Checked by ClamAV on apache.org Hi, I am simple question. I want a string to be indexed, but stored part of that string. For example, if my string is "foo bar", I want to index whole string("foo bar") but store the first 3 characters("foo") of it. How can I do this with the lucene APIs? thanks ravi --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org