Hi everybody!

Is there anyone here that’s been working with collapse/expand and come up with 
a similar issue? (Solr 8.11)
 
My query returns two items in the response results, but when using 
collapse/expand on those to group them by a field,
they are not included at all in the expanded response property, making it look 
like there are no results at all since
I’m only looking for grouped results in my API implementation.

Anybody has an idea why this might be happening?

``` Example response
{
 "responseHeader":{
   "status":0,
   "QTime":6,
   "params":{
     "q”:"text OR companyName:text*",
     "defType":"edismax",
     "expand":"true",
     "expand.rows":"5",
     "fl":"*,score",
     "start":"0",
     "fq":["validFrom:[* TO NOW]",
       "validTo:[NOW TO *]",
       "{!collapse field=type}",
       "filter(market:se)"],
     "rows":"9999",
     "wt":"json"}},
 
"response":{"numFound":2,"start":0,"maxScore":10.004526,"numFoundExact":true,"docs":[
     {
       "type":"partner",
       "_version_":1743108385113374720,
       "score":10.004526},
     {
       "type":"discount",
       "_version_":1743108383646416896,
       "score":8.287054}]
 },
 "expanded":{}}
```

Thank you all in advance for your help!

With regards,
Konstantinos


==================================================
Konstantinos Koukouvis
konstantinos.koukou...@mecenat.com

Using Golang and Solr? Try this: https://github.com/mecenat/solr





Reply via email to