FieldCache was designed with searching in mind, where there can only be a
single indexed Term for each doc (otherwise how would you sort a doc that
had two Terms "a" and "z" ?) I'm acctually suprised you are getting any
values out instead of an Exception
If you index your Field as UN_TOKENIZED y
Not sure of the solution though. But FieldCache.DEFAULT.getStrings()
is returning a String[], with one String for each document. Seems your
field is analyzed into multiple String values.
Chris Lu
---
Lucene Search on Any Databases/Applications
h