[ https://issues.apache.org/jira/browse/SOLR-8192?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14973430#comment-14973430 ]
Yonik Seeley commented on SOLR-8192: ------------------------------------ {quote}One more thing, is there any performance improvement(response time) when you ask for two subfacets on the same request (i.e. ask for subfacets on dimension1 and dimension 2, where q=banana)? Or is it better to ask for subfacets on dimension1, where q=banana and another simultaneous subfacets request on dimension2, where q=banana? {quote} When you say "simultaneous", are you issuing two completely separate Solr requests at the same time? If so, that's less efficient and causes more work for the system over all, but it can currently lower latency because of the parallelism that is introduced (the faceting code is currently single threaded... only one thread will be used per request). We should really develop multi-threaded faceting code! > SubFacets allBuckets not woring with measures on tokenized fields > ------------------------------------------------------------------ > > Key: SOLR-8192 > URL: https://issues.apache.org/jira/browse/SOLR-8192 > Project: Solr > Issue Type: Bug > Reporter: Pablo Anzorena > Assignee: Yonik Seeley > Fix For: 5.4 > > Attachments: SOLR-8192.patch > > > Subfacets are not working when you ask for allBuckets on a tokenized fields > with measures > Here is the request: > { > hs: { > field: hs, > type: terms, > allBuckets:true, > sort: "mostrar_bill_price desc", > facet:{ > mostrar_bill_price: "sum(mostrar_bill_price)" > } > } > } > Here is the response: > { > "responseHeader": { > "status": 500, > "QTime": 92, > "params": { > "indent": "true", > "q": "*:*", > "json.facet": "{ hs: { field: hs, type: terms, allBuckets:true, sort: > \"mostrar_bill_price desc\", facet:{ mostrar_bill_price: > \"sum(mostrar_bill_price)\" } } }", > "wt": "json", > "rows": "0" > } > }, > "response": { > "numFound": 35422188, > "start": 0, > "docs": [] > }, > "error": { > "trace": "java.lang.ArrayIndexOutOfBoundsException\n", > "code": 500 > } > } > hs fields is defined as: > <field name="hs" type="text_ws" indexed="true" stored="false" > required="false" multiValued="false" /> > mostrar_bill_price is defined as: > <field name="mostrar_bill_price" type="tdouble" indexed="true" > stored="false" required="false" multiValued="false" /> > A part from text_ws, it also happens with text_classic (these are the only > ones I've tested it. -- 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