Pablo Anzorena created SOLR-8471:
------------------------------------
Summary: Different responses between solr java client and solr
web, when request for range subfacets
Key: SOLR-8471
URL: https://issues.apache.org/jira/browse/SOLR-8471
Project: Solr
Issue Type: Bug
Environment: Solr 5.2.1
Reporter: Pablo Anzorena
I make a request using json.facet via solr java client and solr web, and the
responses are different.
This is the request:
{
date_fulll: {
type: range,
field: date_full,
start: "2015-01-01T00:00:00Z",
end: "2015-12-31T00:00:00Z",
gap: "+3MONTHS",
mincount: 1,
hardend: true,
other: none,
facet: {
Teus: "sum(mostrar_cant_teus)"
}
},
Teus: "sum(mostrar_cant_teus)"
}
The response from the web is OK
"buckets": [
{
"val": "2015-01-01T00:00:00Z",
"count": 10225817,
"Teus": 14606647.969191335
},
{
"val": "2015-04-01T00:00:00Z",
"count": 11107807,
"Teus": 16075736.60429075
},
{
"val": "2015-07-01T00:00:00Z",
"count": 11450051,
"Teus": 16654022.338799914
},
{
"val": "2015-10-01T00:00:00Z",
"count": 9232776,
"Teus": 13341092.767605131
}
]
But the response from java substract 3 hours for each bucket. Here is the java
response:
{count=42016451,Teus=6.0677499681092925E7,date_full={buckets=[{val=Wed Dec 31
21:00:00 ART 2014,count=10225817,Teus=1.4606647969191335E7}, {val=Tue Mar 31
21:00:00 ART 2015,count=11107807,Teus=1.607573660429075E7}, {val=Tue Jun 30
21:00:00 ART 2015,count=11450051,Teus=1.6654022338799914E7}, {val=Wed Sep 30
21:00:00 ART 2015,count=9232776,Teus=1.3341092767605131E7}]}}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]