The original document is not indexed. Currently it is just stored and could
be stored in an filesystem or a database in the future.
The different parts of a document are indexed in multiple different fields
with some different analyzers (stemming, multiple languages, regex,...).
So, I don't thin
> I need to highlight searched words in the original text
> (xml) of a document.
Why don't you remove xml tags in an analyzer? You can highlight xml by doing so.
To clarify a bit more, I took a look to this function :
termPositions
public TermPositions termPositions()
throws IOException
Description copied from class: IndexReader
Returns an unpositioned TermPositions enumerator.
But it returns an unpositioned enumerat