Re: relative token count in a query result

2012-11-20 Thread Mikhail Khludnev
Hello, Have you tried to implement your own Collector and pass it into IndexSearch.search()? Collector has a reference to the current scorer, and therefore presumably can access tf info from TermQueryScorer: org.apache.lucene.search.TermScorer.freq(). Then collector can just sum these tfs. Be awa

relative token count in a query result

2012-11-20 Thread tech.vronk
Hello, earlier, I was trying to retrieve the total token count per index http://lucene.472066.n3.nabble.com/how-to-retrieve-total-token-count-per-collection-index-td4000161.html . now, I would like to have a token (word) count within the document-set (resulting of a query), both for the matchi