You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expect to retrieve search results grouped by the specified field (sno) based on the provided query. The results should be similar to what I see in the Solr UI.
Actual behavior
No search results are returned. The results variable is empty.
Steps to reproduce the behavior
Use pysolr library to connect to Solr instance.
Execute the following search query with grouping in Python:
I've looked into this. There are two problems here: First pysolr converted python boolean true to True with a capital 'T', which solr won't take. Second issue is the grouping field parameter is called group.field not group_field. You can do a search here https://archive.apache.org/dist/lucene/solr/ref-guide/apache-solr-ref-guide-4.9.pdf
Unfortunately the code seems a bit tangled for me but it is not too hard to fix.
pysolr tends to stay out of the type conversion business because it would require knowledge of your Solr instance and its configuration to know which fields should be converted and which should be left alone, and that knowledge lives at the application level.
I have
Expected behavior
I expect to retrieve search results grouped by the specified field (sno) based on the provided query. The results should be similar to what I see in the Solr UI.
Actual behavior
No search results are returned. The results variable is empty.
Steps to reproduce the behavior
Alternatively, I tried the query below which gives me:
Configuration
The text was updated successfully, but these errors were encountered: