lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: number of hits per document
Date Tue, 17 Jun 2008 22:03:59 GMT

: > I could do it that way, but couting the spans per document is specific to
: > SpanQuerys. I would still have to count hits for TermQuerys separately. I
: > was looking for a generic way to count hits for any instance of Query within
: > a document.

the orriginal Query, Weight, and Scorer APIs provided no mechanism for 
doing this -- this is one of the reasons why the SpanQuery API exists, to 
model the types of queries that (can) collect this type of information as 
they score documents.  Non-Span based queries typically have no idea about 
this type of information.  (which typically allows them to be faster)



-Hoss


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