Re: Cannot get Field.Text to work

2007-07-10 Thread Chris Hostetter
: Thanks for the reply. I didn't know that as all the examples on Lucene still : use the old approach. : I had a look at the API and it does not seem to provide any new methods as : a substitute for Field.Text. Please note there is a FAQ specificly about "How do I get code written for Lucene 1.4

Re: Cannot get Field.Text to work

2007-07-10 Thread Amit
Field("name", contact.getName(),Field.Store.YES, Field.Index.TOKENIZED)); Andy -Original Message- From: Amit [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 10, 2007 6:00 PM To: java-user@lucene.apache.org Subject: Re: Cannot get Field.Text to work Hi Otis, Thanks for the reply. I

RE: Cannot get Field.Text to work

2007-07-10 Thread Liu_Andy2
M To: java-user@lucene.apache.org Subject: Re: Cannot get Field.Text to work Hi Otis, Thanks for the reply. I didn't know that as all the examples on Lucene still use the old approach. I had a look at the API and it does not seem to provide any new methods as a substitute for Field.Text.

Re: Cannot get Field.Text to work

2007-07-10 Thread Amit
M Subject: Cannot get Field.Text to work Hi I am new to Lucene and trying out the example code. But when I try to insert values using Field.Text the compiler does not recognize the Text as a method of Field. The code looks like this contactDocument.add(Field.Text("name", contact.getNam

Re: Cannot get Field.Text to work

2007-07-09 Thread Otis Gospodnetic
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Simpy -- http://www.simpy.com/ - Tag - Search - Share - Original Message From: Amit <[EMAIL PROTECTED]> To: java-user@lucene.apache.org Sent: Monday, July 9, 2007 10:41:27 PM Subject: Cannot get Field.Text to work Hi I am new to Lucene and trying o

Cannot get Field.Text to work

2007-07-09 Thread Amit
Hi I am new to Lucene and trying out the example code. But when I try to insert values using Field.Text the compiler does not recognize the Text as a method of Field. The code looks like this contactDocument.add(Field.Text("name", contact.getName())); I wanted to know if the version 2.2 does no