query parsing

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

query parsing

Sebastian Schick
Hello,

maybe I better under my problem with the highlighting of query terms in
the summary now a little bit more?. My query is e.g "New York lang:de"

The term "New York" is highlighted correctly.
But if I have an email address e.g [hidden email] in the summary, the term
"de" of the email address is also highlighted.

Why will "de" not deleted in the NutchAnalysis class?
My problem now is, that I do not understand, how I can remove field
values from query?



Regards,

Sebastian
Reply | Threaded
Open this post in threaded view
|

Re: query parsing

Sebastian Schick
Sebastian Schick wrote:

> Hello,
>
> maybe I better under my problem with the highlighting of query terms
> in the summary now a little bit more?. My query is e.g "New York lang:de"
>
> The term "New York" is highlighted correctly.
> But if I have an email address e.g [hidden email] in the summary, the
> term "de" of the email address is also highlighted.
>
> Why will "de" not deleted in the NutchAnalysis class?
> My problem now is, that I do not understand, how I can remove field
> values from query?
>
>
>
> Regards,
>
> Sebastian
Hello,

my solution is to change the file NutchAnalysis.java in line 293:

if (this.queryFilters.isRawField(field)) {
    result.clear();
// result.add(queryString.substring(start, token.endCoumn));


Maybe this is something which can be configurable? Or is it?



Regards,

Sebastian