Hi Friends,
Before indexing somthing I want to check whether this term is already exist in
index / NOT.[i.e. primary key kind of thing].
When I am trying to get docs with indexReader.termDocs(term); it is not
returning expected results.
I put "TermDocs" object in while loop to print document nu
Well, first you never test anything that will break the loop. TermDocs.next
()
does not set termdocs == null, but returns false
I've always found it a bit confusing that calling next() doesn't skiph the
first term, but you want something like this
Term term = new Term(field, valu