[
https://issues.apache.org/jira/browse/SOLR-7530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16866791#comment-16866791
]
Munendra S N commented on SOLR-7530:
------------------------------------
[~mkhludnev]
[^SOLR-7530.patch]
I have updated the documentation to add JSON example when terms.ttf=true. Also,
note about terms.list. I have not included some bugs/limitation which are in
progress. Please suggest if any changes required
While updating this, observed that when terms.ttf=true, the value returned is
long but when terms.ttf=false the value returned is integer in standalone mode
but it could be integer or long in distributed based on the value. Currently,
value type varies b/w standalone and distributed mode in other components too
but here(terms), I feel slightly more inconsistent as terms.ttf value affects
the type and based on actual value type varies in distributed mode. For now, I
have left it as it is
> Wrong JSON response using Terms Component with distrib=true
> -----------------------------------------------------------
>
> Key: SOLR-7530
> URL: https://issues.apache.org/jira/browse/SOLR-7530
> Project: Solr
> Issue Type: Bug
> Components: Response Writers, SearchComponents - other, SolrCloud
> Affects Versions: 4.9
> Reporter: Raúl Grande
> Assignee: Mikhail Khludnev
> Priority: Major
> Fix For: master (9.0)
>
> Attachments: SOLR-7530.patch, SOLR-7530.patch, SOLR-7530.patch,
> SOLR-7530.patch, SOLR-7530.patch, SOLR-7530.patch, SOLR-7530.patch
>
>
> When using TermsComponent in SolrCloud there are differences in the JSON
> response if parameter distrib is true or false. If distrib=true JSON is not
> well formed (please note at the [ ] marks)
> JSON Response when distrib=false. Correct response:
> {"responseHeader":{
> "status":0,
> "QTime":3
> },
> "terms":{
> "FileType":
> [
> "EMAIL",20060,
> "PDF",7051,
> "IMAGE",5108,
> "OFFICE",4912,
> "TXT",4405,
> "OFFICE_EXCEL",4122,
> "OFFICE_WORD",2468
> ]
> } }
> JSON Response when distrib=true. Incorrect response:
> {
> "responseHeader":{
> "status":0,
> "QTime":94
> },
> "terms":{
> "FileType":{
> "EMAIL":31923,
> "PDF":11545,
> "IMAGE":9807,
> "OFFICE_EXCEL":8195,
> "OFFICE":5147,
> "OFFICE_WORD":4820,
> "TIFF":1156,
> "XML":851,
> "HTML":821,
> "RTF":303
> }
> } }
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]