Enclosed you find the diffs I promised for enabling query rewriting.
This also enables tools such as the HTML term highlighter
(http://www.iq-computing.de/lucene/highlight.jsp). There's one difference to
the white paper there: I didn't want to make arrays public, so getClauses()
in BooleanClause only returns an iterator. The same with getTerms() in
PhraseQuery. I have included my version of LuceneTools.java as presented on
the website I mentioned.
I've also got an example for query rewriting, but since it uses an external
library, I've left it out here.
Regards,
Clemens
--------------------------------------
http://www.cmarschner.net
This also enables tools such as the HTML term highlighter
(http://www.iq-computing.de/lucene/highlight.jsp). There's one difference to
the white paper there: I didn't want to make arrays public, so getClauses()
in BooleanClause only returns an iterator. The same with getTerms() in
PhraseQuery. I have included my version of LuceneTools.java as presented on
the website I mentioned.
I've also got an example for query rewriting, but since it uses an external
library, I've left it out here.
Regards,
Clemens
--------------------------------------
http://www.cmarschner.net