On 23/11/2007, Liaqat Ali <[EMAIL PROTECTED]> wrote:
> *Can not find symbol: method Text (java.lang.String, java.lang.String)
> location: class org.apache.lucene.document.Field
> document.add(Field.Text("fieldname", text));
> *
If you're using Lucene 2.x.x, the static methods of the Field class
have gone away. I'd use the following in your case:
document.add(new Field("fieldname", text, Field.Store.YES,
Field.Index.TOKENIZED);
to do what you wish.
--
Cheers,
Hasan Diwan <[EMAIL PROTECTED]>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]