lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phil Whelan <phil...@gmail.com>
Subject Is it possible to retrieve Terms from a Document?
Date Sat, 01 Aug 2009 00:15:26 GMT
Hi,

I know you can use Field.Store.YES, but I want to inspect the terms /
tokens and their order related to the field name at search time. Is
this possible? Obviously this information is stored in the index, but
I can not find any API to access it. I'm guessing the answer might be
that Terms point to a Document and not the other way around. Is this
right?

eg.
Document doc = .... ;
Term[] terms = doc.getTerms();

Or...
String[] values = doc.getTermValues();

Thanks,
Phil

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message