lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tao Cheng" <>
Subject Is there a Term ID for each distinctive term indexed in Lucene?
Date Fri, 31 Aug 2007 22:43:27 GMT
Hi all,

I found that instead of storing a term ID for a term in the index, Lucene
stores the actual term string value. I am wondering if there ever is such a
"term ID" for each distinctive term indexed in Lucne, similar as a "doc ID"
for each distinctive document indexed in Lucene.

In other words, I am looking for a method like " int termId(string term)" in
the IndexReader, such that it can return my an ID given a term's string

Thanks a lot in advance.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message