> if it comes from PdfBox, the wrong text is > highlighted. Wrong in what sense?
A couple of things to consider from looking at your code. * It is preferable to pass a rewritten query to the highlighter (pass the same rewritten query to searcher if you want to avoid query rewriting costs twice). * If you want to force the highlighter to strictly match query terms with the document field you are marking up, pass the relevant fieldname to QueryScorer constructor (latest version of highlighter from SVN required). This will then only consider matches for query terms related to that field. If you dont do this you could highlight "foo" in a body field when the query was actually for "title:foo body:bar". Cheers Mark ___________________________________________________________ Yahoo! Exclusive Xmas Game, help Santa with his celebrity party - http://santas-christmas-party.yahoo.net/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]