Re: Lucene in Action book. Problems with first example

2008-12-16 Thread Ian Lea
A follow up message to the one you mention suggests that something be added to the Lucene FAQ and it was, with a link to the 1.9 apidocs which shows the deprecated methods and alternatives. http://lucene.apache.org/java/1_9_1/api/ -- Ian. On Tue, Dec 16, 2008 at 7:09 PM, Oleg Oltar wrote: > I

Re: Lucene in Action book. Problems with first example

2008-12-16 Thread Oleg Oltar
I am trying to fix my code now. I am using the http://markmail.org/message/4jupw4wnjn3gv7wh Replace all Field.Keyword/UnStored/Text/UnIndexed with the enumerated types, e.g.: - doc.add(Field.Keyword("animal", animal)); + doc.add(new Field("animal", animal, Field.Store.YES, Field.Index.UN_TOKENIZE

Re: Lucene in Action book. Problems with first example

2008-12-16 Thread Erik Hatcher
On Dec 16, 2008, at 6:57 AM, Oleg Oltar wrote: Also maybe there are some free manuals/articles that you can recommend for starters? There's a bunch of stuff listed here: Lucene has been changing so rapidly lately that I'm not aware of any

Re: Lucene in Action book. Problems with first example

2008-12-16 Thread Oleg Oltar
Also maybe there are some free manuals/articles that you can recommend for starters? On Tue, Dec 16, 2008 at 1:08 PM, Oleg Oltar wrote: > Thanks!!! > I didn't expect to get such quick answers. Just let me try to fix it :) > > > On Tue, Dec 16, 2008 at 12:56 PM, Erik Hatcher > wrote: > >> >> On

Re: Lucene in Action book. Problems with first example

2008-12-16 Thread Oleg Oltar
Thanks!!! I didn't expect to get such quick answers. Just let me try to fix it :) On Tue, Dec 16, 2008 at 12:56 PM, Erik Hatcher wrote: > > On Dec 16, 2008, at 5:53 AM, Oleg Oltar wrote: > >> So is there another manual which I can use to start? (Seems that examples >> in >> the book, are carefull

Re: Lucene in Action book. Problems with first example

2008-12-16 Thread Erik Hatcher
On Dec 16, 2008, at 5:53 AM, Oleg Oltar wrote: So is there another manual which I can use to start? (Seems that examples in the book, are carefully chosen for starters, and quite easy to understand) The API differences are all quite minor to adjust to the latest - hopefully the post I poi

Re: Lucene in Action book. Problems with first example

2008-12-16 Thread Oleg Oltar
I posted errors as comments in the provided code.. Yes seems that the version in the book is a little bit old (as the book was created in 2005) So is there another manual which I can use to start? (Seems that examples in the book, are carefully chosen for starters, and quite easy to understand)

Re: Lucene in Action book. Problems with first example

2008-12-16 Thread Erik Hatcher
The first edition of Lucene in Action was written for Lucene 1.4. Lots has changed since then in the API, but the fundamentals are still sound. The code can be easily updated to the newer API following the details I posted here: Do note t

Re: Lucene in Action book. Problems with first example

2008-12-16 Thread Michael McCandless
Lucene in Action is based on the 1.4.x release of Lucene, which is quite old by now and unfortunately some of the APIs have since been removed. We are working on the 2nd edition to fix this, but in the mean-time you need to migrate to the new APIs when you see the errors. Eg, if you loo

Re: Lucene in Action book. Problems with first example

2008-12-16 Thread Joseph.Syjuco
Hi, What were the errors? Just a guess ... it may be possible that you are using the wrong lucene version - the one in the book is not the most updated one avbl today "XP is making a bet. It is betting that it is better to do a simple thing today and pay a little more tomorrow to change it if