On Fri, Mar 22, 2013 at 5:28 PM, Michael McCandless
<luc...@mikemccandless.com> 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 <jeff.tho...@gmail.com> 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-unsubscr...@lucene.apache.org
>> For additional commands, e-mail: java-user-h...@lucene.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to