My apologies. During development an earlier version of this API supported text fields but the released version doesn't and is mainly for use on keyword fields.
That would be because the terms_enum API only looks for index matches that start with the provided search string. Keyword fields don't chop document strings into multiple words so the indexed string will be the full value e.g. How to manage people and it doesn't begin with the search string manage
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.