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 693E8F6A4 for ; Fri, 22 Mar 2013 19:15:08 +0000 (UTC) Received: (qmail 12293 invoked by uid 500); 22 Mar 2013 19:15:06 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 12247 invoked by uid 500); 22 Mar 2013 19:15:06 -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 12239 invoked by uid 99); 22 Mar 2013 19:15:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Mar 2013 19:15:06 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of simon.willnauer@gmail.com designates 209.85.215.53 as permitted sender) Received: from [209.85.215.53] (HELO mail-la0-f53.google.com) (209.85.215.53) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Mar 2013 19:15:01 +0000 Received: by mail-la0-f53.google.com with SMTP id fr10so7819393lab.26 for ; Fri, 22 Mar 2013 12:14:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:reply-to:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=o+sFrbqMe5MMh9SXr8ZK8s9hqgtLZMFSC5FAs5mfA04=; b=cCVmn1zI1hPMaDEjvLE2yrbxQ+ZV1Ybt7pm+Ia60M4DZ29wsbvtJtiVkOYCUyD/8Ms zWvZ9Jb88Ka5872eS0f/65BeDpmU0/29CLTvyNUvKl9d0sjbgQ6vTYuIlBWUwVe+I9Gi RTtHXAIOKeMVae6C4N7a8AgpCUPWXgRQng3LirUcej4P9H4/8lHxKgo5XXv8Fz7H//aG KNqC304NB27L99ilhV/mxSi0nkILUbNKyTuVhWAAsZhuQD1QcQ2FGsSTqnHngBjvRA3C Fckl1FAU42BjkGKygY4jAxQLUxWU34rlJpzEly4u9JXGMIr+VPMNja0E7ljbDlWYkZRQ VjxA== MIME-Version: 1.0 X-Received: by 10.152.87.73 with SMTP id v9mr1278364laz.2.1363979680471; Fri, 22 Mar 2013 12:14:40 -0700 (PDT) Received: by 10.112.48.101 with HTTP; Fri, 22 Mar 2013 12:14:40 -0700 (PDT) Reply-To: simon.willnauer@gmail.com In-Reply-To: References: <1363965757545-4050068.post@n3.nabble.com> Date: Fri, 22 Mar 2013 20:14:40 +0100 Message-ID: Subject: Re: Field.Index deprecation ? From: Simon Willnauer To: java-user@lucene.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Mar 22, 2013 at 5:28 PM, Michael McCandless wrote: > We badly need Lucene in Action 3rd edition! go mike go!!! ;) > > The easiest approach is to use one of the new XXXField classes under > oal.document, eg StringField for your example. > > If none of the existing XXXFields "fit", you can make a custom > FieldType, tweak all of its settings, and then create a Field from > that. > > Mike McCandless > > http://blog.mikemccandless.com > > On Fri, Mar 22, 2013 at 11:22 AM, jeffthorne wrote: >> I am new to Lucene and going through the Lucene in Action 2nd edition book. I >> have a quick question on the best way to add fields to a document now that >> Field.Index is deprecated. >> >> Here is what I am doing and what most example online suggest: >> >> doc.add(new Field("id", dbID, Store.YES, >> Field.Index.NOT_ANALYZED_NO_NORMS)); >> >> What is the new recommended way to set Index properties on Fields with >> Field.Index going away? Can't seem to find anything online. >> >> Thanks for the help, >> Jeff >> >> >> >> >> >> >> -- >> View this message in context: http://lucene.472066.n3.nabble.com/Field-Index-deprecation-tp4050068.html >> Sent from the Lucene - Java Users mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >> For additional commands, e-mail: java-user-help@lucene.apache.org >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org