Hi

I'm using highlighter and have this problem:

The query is over two or more fields, like:
*body:home AND title:sale*

I want to highlight over body field, but not highlight "sale" if "sale" is in body.

How I can do this?

When I create a Highlighter instance, the parameter is the query:
*highlighter = new Highlighter(new QueryScorer(query));*
but I don't say witch is the field to highlight.

The another QueryScorer constructor is:
*QueryScorer(WeightedTerm[] wet);*

But, who I can get the terms from body field in my query?

Regards
Ernesto.

--
Ernesto De Santis - Colaborativa.net
La Plata, Argentina.
http://www.colaborativa.net/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to