Do you need fields to be returned along side the document IDs or no?
Have you verified the query does return document hits?
If you want fields’ content for every document ID to be included within your search response, "store"ing the child fields in your index definition and asking for them while making the search request is the way to go.
@abhinav the document IDs are being returned but the fields being asked for (drug_name in this case) are not being returned. Here is a glimpse of the index definition.
The definition looks good. Let’s check if the issue is with how you’re using the SDK.
Would you try this query (as a curl/HTTP request) and check how the search response looks …
Things seem to not work as expected with python SDK 3.
I’m not very familiar with the syntax to retrieve fields along side document IDs in a search response.
Hi @dishawagle – what version of the Python SDK are you using? Also, how are you trying to access the fields? You need to first kick off the iterator on the result by result.rows() before you will start to retrieve values. From there, you should have a fields dict on each row.