Can you paste in the entire http request? Wondering if you're using both collapse and expand. Both of these have an effect on performance.
Joel Bernstein http://joelsolr.blogspot.com/ On Wed, Apr 29, 2015 at 8:48 AM, yliu <y...@mathworks.com> wrote: > Hi, Joel, > > Here are some details: > > 1) I am using solr version 4.10.4. > > When my request is: q=contentType:EntitlementBean AND > licenseNumber:40281071. > > It returns in 414ms. And the response size is 4728 bytes. One document > returned. > > When my request is: q=contentType:EntitlementBean AND > > licenseNumber:40281071&expand=true&expand.field=_root_&expand.q=*:*&expand.rows=20000 > > It returns in 1253ms. And the response size is 220865 bytes. One document > returned. 382 expanded documents returned. > > When my request is: q=contentType:EntitlementBean AND > > licenseNumber:40281071&expand=true&expand.field=_root_&expand.q=contentType:ActivationBean > OR contentType:EntitlementReleaseBean OR contentType:EntitlementProductBean > OR (contentType:EntitlementPersonBean AND > webProfileId:5449738)&expand.rows=20000 > > It returns in 11541ms. And the response size is 220319 bytes. One > document > returned. 380 expanded documents returned. > > Please let me know if you need more information. Thanks, > > yliu > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/How-to-improve-the-performance-of-query-with-expand-query-tp4202895p4202991.html > Sent from the Solr - User mailing list archive at Nabble.com. >