lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "zhu jiang" <ykzhuji...@gmail.com>
Subject Re: [Lucene2.0]How to not highlight keywords in some fields?
Date Tue, 26 Sep 2006 08:33:08 GMT
Thx a lot!

2006/9/26, markharw00d <markharw00d@yahoo.co.uk>:
>
> 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
>
>


-- 
Thanks,
Jiang

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message