You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by moraleslos <mo...@hotmail.com> on 2007/02/27 18:22:02 UTC
Highlighting issues
In my search query I have two fields to search, a metadata field and the
actual contents. The metadata field is just an enum containing FIRST and
LAST. Here is an example search query:
Content:"Barry Bonds" and Metadata:FIRST
I have Lucene highlight the hits like this:
...
getBestFragment(standardAnalyzer, "Content", content);
...
Now I would only expect the highlighted text to show the key words Barry
Bonds but instead some of the highlighted text I get back actually
highlights the enum FIRST. For example, one highlighted result is this:
********************************************
...attempting to slide into <p>first</p> base...
********************************************
The above result is not what I had in mind. Any ideas on why the highlighter
is highlighting my enum field and not only my keywords from the content
field? Thanks in advance!
-los
--
View this message in context: http://www.nabble.com/Highlighting-issues-tf3302760.html#a9187114
Sent from the Lucene - Java Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org