I'm extracting terms from the query calling ExtractTerms()
on the Query object that I get as the result of QueryParser.Parse()
. I get a HashTable, but each item present as:
Key - term:term
Value - term:term
It is because .Net 2.0 doesnt have an equivalent to java's HashSet. The conversion to .Net uses Hashtables with the same value in key/value. The colon you see is just the result of Term.ToString()
, a Term
is a fieldname + the term text, your field name is probably "term".
To highlight an entire document using the Highlighter contrib, use the NullFragmenter