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 retrieve the terms in the index that matched in a document? For example, the search term for my WildcardQuery is 'arch*' and I got 3 hits on it. I want to know what terms in the indexed matched (e.g. archery, architecture, archenemy).

More specifically, I'd like to do this without having to use the highlighter jar.

I already have my index set up with term vectors enabled.

Thanks,
John



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

Reply via email to