Apache Forrest code fix (bug FOR-246,FOR-431)

code fix
by
DC
(fixes bug FOR-246,FOR-431)

:

Fix various bugs with Lucene search.
Thanks to Florian G. Haas.