Version 1.2 of Lucene does not have this method. You will have to download the nightly build (or add it yourself) to get this to work.
--Peter On 7/5/02 10:23 AM, "Ilya Khandamirov" <[EMAIL PROTECTED]> wrote: > Hi Peter, > > Thank you very much. > But i have one minor problem. Is everything OK with the following line > (HitIterator.java, line 87): > > int id = hitsCollection.id(i); > > My compiler says: "Error #: 300 : method id(int) not found in class > org.apache.lucene.search.Hits" and it looks like he is correct. Am I > missing something? > > > Regards, > Ilya > > > -----Original Message----- > From: Peter Carlson [mailto:[EMAIL PROTECTED]] > Sent: Freitag, 5. Juli 2002 16:26 > To: Lucene Users List > Subject: Re: SearchBean Persistence > > > Sorry about that, > I made a mistake on the class name, take out the .java > > <servlet> > <servlet-name>Lucene Index Loader</servlet-name> > <servlet-class>org.apache.lucene.servlet.IndexLoader</servlet-class> > <load-on-startup>1</load-on-startup> > </servlet> > > > > On 7/5/02 7:23 AM, "Peter Carlson" <[EMAIL PROTECTED]> wrote: > >> Hi Ilya, >> >> I was looking at my local directory sorry about that. >> >> I am just going to attach what I have since it has a dependency on a >> property file which I haven't create yet. >> >> This is a servlet which you will have to have your JSP/Servlet engine >> load at startup. >> >> Put the code in your web.xml class for your local app. >> >> <servlet> >> <servlet-name>Lucene Index Loader</servlet-name> >> > <servlet-class>org.apache.lucene.servlet.IndexLoader.java</servlet-class >> >> <load-on-startup>1</load-on-startup> >> </servlet> >> >> I hope this helps. >> >> --Peter >> >> On 7/5/02 5:58 AM, "Ilya Khandamirov" <[EMAIL PROTECTED]> wrote: >> >>> Hi Peter, >>> >>>> there is a sample servlet in the servelet directory of the >>>> SearchBean >>> contribution >>> >>> Are you sure? This directory (servlet) is empty: >>> http://cvs.apache.org/viewcvs/jakarta-lucene-sandbox/contributions/se >>> arc >>> hbean/src/java/org/apache/lucene/servlet/ >>> >>> Could you please provide me with the sample servlet? >>> >>> Thank you. >>> >>> Regards, >>> Ilya >>> >>> >>> -- >>> To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> >>> For additional commands, e-mail: >>> <mailto:[EMAIL PROTECTED]> >>> >>> >> >> >> -- >> To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> >> For additional commands, e-mail: >> <mailto:[EMAIL PROTECTED]> > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>