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
Describe the bug
The results highlights field has a different return type for the different search methods. LEXICAL returns an empty list while TENSOR returns a dict.
accessed viaresults['hits'][0]['_highlights'] To Reproduce
Steps to reproduce the behavior:
Install marqo per readme
import marqo as mq
client = mq.Client()
client.index("my-first-index").add_documents([{'text':'something'}])
client.index("my-first-index").search('something') # _highlights type is a dict
client.index("my-first-index").search('something', search_method='LEXICAL') # _highlights type is a list
Expected behavior
The return types are the same.
Screenshots
Desktop (please complete the following information):
OS: [e.g. iOS] ubuntu 20.04
The text was updated successfully, but these errors were encountered:
Describe the bug
The results highlights field has a different return type for the different search methods. LEXICAL returns an empty list while TENSOR returns a dict.
accessed via
results['hits'][0]['_highlights']
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The return types are the same.
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: