lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markharw00d <markharw...@yahoo.co.uk>
Subject Re: [Lucene2.0]How to not highlight keywords in some fields?
Date Tue, 26 Sep 2006 07:31:25 GMT
Pass a field name to the QueryScorer constructor.
See "testFieldSpecificHighlighting" method in the Junit test for the 
highlighter for an example.

Cheers
Mark


zhu jiang wrote:
> Hi all,
>
>    For example, if I have a document with two fields text and num like
> this:
> ----------------
> text:foo bar 1
> num:1
> ----------------
>
> When users query "foo", I changed the query to "text:foo AND num:1", both
> "foo" and "1" in the text field will be highlighted. I don't wanna the 
> word
> "1" in text field to be highlighted. What should I do? Pls help me
>
>



		
___________________________________________________________ 
The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet
provider. http://uk.docs.yahoo.com/nowyoucan.html

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message