Re: Retrieve found terms

2014-11-26 Thread Barry Coughlan
You can enumerate the terms by wrapping the TermsEnum in a PrefixTermsEnum, e.g. Terms terms = fields.terms(field); TermsEnum termsEnum = new PrefixTermsEnum(terms.iterator(null), new BytesRef("arch*")); BytesRef text; while((text = termsEnum.next()) != null) { System.out.pri

Re: Retrieve found terms

2014-11-25 Thread Michael Sokolov
Why don't you want to use a highlighter? That's what they're for. -Mike On 11/25/2014 09:12 AM, John Cecere wrote: I've done a bunch of searching, but I still can't seem to figure out how to do this. Given a WildcardQuery or PrefixQuery (something with a wildcard in it), is there a way to r