Immutable solution version
How to perform a keyword search in marqo
Complete solution
How to perform a keyword search in marqo: All you have to do is pass another keyword argument `search_method="LEXICAL"` to the `.search()` method here is how your code should look like: ``` result = mq.index("my-index").search(q='keyword', se
All you have to do is pass another keyword argument search_method="LEXICAL" to the .search() method here is how your code should look like: `` result = mq.index("my-index").search(q='keyword', search_method="LEXICAL")
Context: Stack Overflow #74405390 (accepted answer, 3 votes): i have been searching through documents in marqo by passing a query as an argument to the .search() method but this returns a list of documents from best to least match. i will like to pass a keyword from the document and i should only get the documents that have those keyword this is how i currently search: `` results = mq.index("my-index").search( q="keyword" ) this is how the output look like: `` {'hits': [{'Description': "document1description", 'Title': 'document1title', 'highlights': bestmatch, 'id': 'd65454db-680c-4f77-8c82-f9aaea66efa1', 'score': 0.5562359},...
Matched source
Source: Published skill Original query: "How to perform a keyword search in marqo" Key terms: keyword, marqo, perform, search
Evidence
Source: Stack Overflow #74405390 (accepted answer, 3 votes): i have been searching through documents in marqo by passing a query as an argument to the .search() method but this returns a list of documents from best to least match. i will like to pass a keyword from the document and i should only get the documents that have those keyword this is how i currently search: `` results = mq.index("my-index").search( q="keyword" ) this is how the output look like: `` {'hits': [{'Description': "document1description", 'Title': 'document1title', 'highlights': bestmatch, 'id': 'd65454db-680c-4f77-8c82-f9aaea66efa1', 'score': 0.5562359},...
Verified resolution: All you have to do is pass another keyword argument search_method="LEXICAL" to the .search() method here is how your code should look like: `` result = mq.index("my-index").search(q='keyword', search_method="LEXICAL")
Source URL: https://stackoverflow.com/questions/74405390/how-to-perform-a-keyword-search-in-marqo
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_e3Aos7jVH_QhKRdhkB00vw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">How to perform a keyword search in marqo <span>— Vectle</span></a>