[ 
https://issues.apache.org/jira/browse/SOLR-6818?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14234219#comment-14234219
 ] 

Joel Bernstein commented on SOLR-6818:
--------------------------------------

Daulet,

Your initial question was answered by Alan. I also took a quick look at your 
post on stackoverflow:

http://stackoverflow.com/questions/27164634/solr-analyticsquery-api-returns-analytics-by-documents-that-dont-match-query

There are also other problems with the code you posted. You actually want to 
use the segment level docId to collect the analytics. But you don't want to use 
the searcher. You'll want to review the API's for the DocValues and FieldCache 
which allow you to access fields much more efficiently then going through the 
searcher. 









> Delegating collector in Analytics API returns not right docNum in collect 
> method
> --------------------------------------------------------------------------------
>
>                 Key: SOLR-6818
>                 URL: https://issues.apache.org/jira/browse/SOLR-6818
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 4.10.2
>            Reporter: Daulet Kadirbekov
>
> Delegating collector in Analytics API returns not right docNum in collect 
> method.
> I have used Analytics API in my solr. I created ResourceAnalyticsCollector 
> which extends DelegatingCollector class. In that class there is collect(int 
> docNum) method. This is the continue of 
> https://issues.apache.org/jira/browse/SOLR-6802 issue. The problem that I 
> found that the docNum value is repeated in collect method of 
> DelegatingCollector. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to