lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Miller <markrmil...@gmail.com>
Subject Re: Hit Count per Document
Date Thu, 20 Dec 2007 20:03:00 GMT
You can override the scoring system and only score by term frequency 
(use a 1 or whatever creates a no-op for the other factors). If you have 
indexed with norms than you will have to use a Reader that ignores them 
to do this.

- Mark

Jeff wrote:
> I don't care about score, but I do care about the # of times a query was hit
> within a document? example:
>
> the quick brown fox jumped over the lazy dog
>  the quick brown fox jumped over the lazy dog
>  the quick brown fox jumped over the lazy dog
>  the quick brown fox jumped over the lazy dog
> the slow brown fox jumped over the lazy dog
>
> If I searched for "quick brown", is there a way I could see that it was hit
> 4 times within the document?
>
> Thanks,
> Jeff
>
>   

---------------------------------------------------------------------
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