INDEXREADER + MAXDOC
Hi Guys Apologies... On using the integer number of Indexreader.maxDoc() API , Is it possible to get the VALUES from the varoius fieldtypes. ex:- 'docs.get(contents) at IndexReader.maxdoc()' If so How...?? WITH WARM REGARDS HAVE A NICE DAY [ N.S.KARTHIK] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: INDEXREADER + MAXDOC
On Jan 4, 2005, at 5:19 AM, Karthik N S wrote: On using the integer number of Indexreader.maxDoc() API , Is it possible to get the VALUES from the varoius fieldtypes. ex:- 'docs.get(contents) at IndexReader.maxdoc()' If so How...?? Just to be sure I understand... you want the last document in the index? IndexReader.document(n) will give you this. Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: INDEXREADER + MAXDOC
Hi Erik Apologies... I would like to EXTRACT the DATA from the various fields of the Last Document [as u said ] Ex: at IndexReader.maxDoc = 100 doc.get(Content) == ISBN100 doc.get(name)== LUCENE IN ACTION doc.get(author) == Erik Hatcher . This is my Requirement. Please With regards Karthik -Original Message- From: Erik Hatcher [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 04, 2005 5:10 PM To: Lucene Users List Subject: Re: INDEXREADER + MAXDOC On Jan 4, 2005, at 5:19 AM, Karthik N S wrote: On using the integer number of Indexreader.maxDoc() API , Is it possible to get the VALUES from the varoius fieldtypes. ex:- 'docs.get(contents) at IndexReader.maxdoc()' If so How...?? Just to be sure I understand... you want the last document in the index? IndexReader.document(n) will give you this. Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: INDEXREADER + MAXDOC
On Jan 4, 2005, at 7:29 AM, Karthik N S wrote: Hi Erik I would like to EXTRACT the DATA from the various fields of the Last Document [as u said ] Ex: at IndexReader.maxDoc = 100 doc.get(Content) == ISBN100 doc.get(name)== LUCENE IN ACTION doc.get(author) == Erik Hatcher . This is my Requirement. So... doc = reader.document(100) Or am I missing something from what you're asking? You need to have the data *stored* in the fields you're going to retrieve from the returned Document. Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maxDoc()
Can anyone please explain to my why maxDoc returns 0 when Luke shows 239,473 documents? maxDoc returns the correct number until I delete a document. And I have called optimize after the delete but still the problem remains Strange. Any ideas greatly appreciated Garrett
Re: maxDoc()
Hello Garrett, Share some code, it will be easier for others to help you that way. Obviously, this would be a huge bug if the problem were within Lucene. Otis --- Garrett Heaver [EMAIL PROTECTED] wrote: Can anyone please explain to my why maxDoc returns 0 when Luke shows 239,473 documents? maxDoc returns the correct number until I delete a document. And I have called optimize after the delete but still the problem remains Strange. Any ideas greatly appreciated Garrett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maxDoc and RemoteSearchable problems
all fixed...it was caused by slightly different versions of the jvm being used to compile vs execute the classes. --DMG - Original Message - From: [EMAIL PROTECTED] Date: Friday, February 27, 2004 8:50 pm Subject: maxDoc and RemoteSearchable problems I am instantiating a RemoteSearchable with a file-based IndexReader: public static void main(String args[]) throws Exception { System.setSecurityManager(new RMISecurityManager()); Searchable theLocal = new IndexSearcher(args[0]); theLocal.maxDoc(); the maxDoc() method call causes: Exception in thread main java.lang.IncompatibleClassChangeError at org.apache.lucene.search.RemoteSearchable.maxDoc(RemoteSearchable.java:97) at org.apache.lucene.search.RemoteSearchable.main(RemoteSearchable.java:125) I placed this method call in because a multisearcher i was attempting to instantiating off of this RemoteSearchable was choking on the maxDoc() method, which it (the MultiSearcher) calls in its constructor. The index I'm building off of is fine (i can instantiate an IndexReader and search against it). Any ideas what might be causing this would be welcome. I'm building from lucene-1.3-final (though the jar builds as 1.4-rc1-dev) and I'm using jdk1.4.1_02 on linux 2.4.7 thanks, --David Goodstein Joint Genome Institute --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problems with maxDoc() and RemoteSearchable
I am instantiating a RemoteSearchable with a file-based IndexReader: public static void main(String args[]) throws Exception { System.setSecurityManager(new RMISecurityManager()); Searchable theLocal = new IndexSearcher(args[0]); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maxDoc and RemoteSearchable problems
I am instantiating a RemoteSearchable with a file-based IndexReader: public static void main(String args[]) throws Exception { System.setSecurityManager(new RMISecurityManager()); Searchable theLocal = new IndexSearcher(args[0]); theLocal.maxDoc(); the maxDoc() method call causes: Exception in thread main java.lang.IncompatibleClassChangeError at org.apache.lucene.search.RemoteSearchable.maxDoc(RemoteSearchable.java:97) at org.apache.lucene.search.RemoteSearchable.main(RemoteSearchable.java:125) I placed this method call in because a multisearcher i was attempting to instantiating off of this RemoteSearchable was choking on the maxDoc() method, which it (the MultiSearcher) calls in its constructor. The index I'm building off of is fine (i can instantiate an IndexReader and search against it). Any ideas what might be causing this would be welcome. I'm building from lucene-1.3-final (though the jar builds as 1.4-rc1-dev) and I'm using jdk1.4.1_02 on linux 2.4.7 thanks, --David Goodstein Joint Genome Institute - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]