[
https://issues.apache.org/jira/browse/SOLR-6802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14231290#comment-14231290
]
Daulet Kadirbekov edited comment on SOLR-6802 at 12/2/14 10:52 AM:
-------------------------------------------------------------------
Yes, I am using pluggable analytic stuff.
Field 'host' or field 'domain' are not multivalued.
I have create mini version of my analytics, with core. Name of file
"Analytics_API_problem.rar".
You can download it by these link http://1drv.ms/15NsYul
How to run?
-copy \solr-4.10.2\contrib\custom package to your solr-4.10.2\contrib\ package
-copy \solr-4.10.2\example\solr\testcore to your \solr-4.10.2\example\solr\
package
-run solr
-Make solr query with fq field:{!resourceTestAnalytics}
In this core there are 550 documents.
150 of these is from domain:*nur.kz
100 of these is from domain:*azattyq.org
100 of these is from domain:*topnews.ru
200 of these is from domain:*tengrinews.kz
But solr analytics always returns for documents that don't match query
Example:
q=_*:*_
fq={!resourceTestAnalytics}
Result of response:
"response": {
"numFound": 550,
docs:[
"domain": "en.tengrinews.kz"
"domain": "en.tengrinews.kz"
"domain": "en.tengrinews.kz"
...
"domain": "news.nur.kz"
"domain": "news.nur.kz"
"domain": "news.nur.kz"
...
"domain": "www.azattyq.org"
"domain": "www.azattyq.org"
"domain": "www.azattyq.org"
...
"domain": "www.topnews.ru"
"domain": "www.topnews.ru"
"domain": "www.topnews.ru"
...
Result of analytics:
"resources": {
"en.tengrinews.kz": 550
},
You could watch my code in AnalyticsTest project.
was (Author: d.kadirbekov):
Yes, I am using pluggable analytic stuff.
Field 'host' or field 'domain' are not multivalued.
I have create mini version of my analytics, with core. Name of file
"Analytics_API_problem.rar".
You can download it by these link http://1drv.ms/15NsYul
How to run?
-copy \solr-4.10.2\contrib\custom package to your solr-4.10.2\contrib\ package
-copy \solr-4.10.2\example\solr\testcore to your \solr-4.10.2\example\solr\
package
-run solr
-Make solr query with fq field:{!resourceTestAnalytics}
In this core there are 550 documents.
150 of these is from domain:*nur.kz
100 of these is from domain:*azattyq.org
100 of these is from domain:*topnews.ru
200 of these is from domain:*tengrinews.kz
But solr analytics always returns for documents that don't match query
Example:
q='*:*'
fq={!resourceTestAnalytics}
Result of response:
"response": {
"numFound": 550,
docs:[
"domain": "en.tengrinews.kz"
"domain": "en.tengrinews.kz"
"domain": "en.tengrinews.kz"
...
"domain": "news.nur.kz"
"domain": "news.nur.kz"
"domain": "news.nur.kz"
...
"domain": "www.azattyq.org"
"domain": "www.azattyq.org"
"domain": "www.azattyq.org"
...
"domain": "www.topnews.ru"
"domain": "www.topnews.ru"
"domain": "www.topnews.ru"
...
Result of analytics:
"resources": {
"en.tengrinews.kz": 550
},
You could watch my code in AnalyticsTest project.
> Solr AnalyticsQuery API returns analytics by documents that don't match query
> -----------------------------------------------------------------------------
>
> Key: SOLR-6802
> URL: https://issues.apache.org/jira/browse/SOLR-6802
> Project: Solr
> Issue Type: Bug
> Components: query parsers
> Affects Versions: 4.10.2
> Reporter: Daulet Kadirbekov
> Priority: Critical
>
> Solr AnalyticsQuery API returns analytics by documents that don't match query.
> Example:
> Solr query: domain:example.com
> I looked for all documents by /select search handler and all of this
> documents was belonged to example.com domain.
> But when I looked in analytics for documents, I have found that there are
> many documents which don't match query. But number of documents is the same.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]