public NSArray<String> findTermStringsForPrefix(String field, String prefix) {
NSMutableArray<String> terms = new NSMutableArray<String>();
try {
IndexReader reader = indexReader();
TermEnum tenum = new PrefixTermEnum(reader, new Term(field, prefix));
do {
if (tenum.term() == null) break;
final String termText = tenum.term().text();
terms.addObject(termText);
} while (tenum.next());
} catch (Exception e) {
e.printStackTrace();
}
return terms;