lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: Any tricks to IndexReader.termDocs(Term)?
Date Tue, 04 Oct 2005 23:46:01 GMT

FYI: Assuming you are using that java port of lucene, then
java-user@lucene.apache.org is probably a more approriate list of these
types of questions.

: indexReader.termDocs(new Term("someId", someInteger+""));
:
: The returned TermDocs enumeration is empty. I have tried all the

define "empty" ... is the refrence returned null?  if it is not null, how
are you using it? ... are you calling next() once prior to calling either
doc() or freq()?  (per the documentation for each of those methods) ...
is the first call of next() returning false?

if you can post a short unit test using a RAMDirectory that demonstrates
your problem, it's more likely other people will be able to offer advice.



-Hoss


Mime
View raw message