The IndexReader is needed for finding all wildcard matches (by the index
lexicon). It seems you do not want to expand the wild card query by the
index lexicon, but rather with that of the highlighted text (which may not
be indexed at all). I think you have at least two ways to do that:
(1) create
Is there anyway to do highlighting when using a WildcardQuery when
there is no IndexReader available? I simply want to do it with a
chunk of text, but it fails because the WildcardQuery needs to call
rewrite - but doesn't know about the IndexReader.
Code (using PyLucene-2.0.0 - can translat