#random

Inconsistent Search Results with Additional Keyword

TLDR Yuhong experiences inconsistent search results with the inclusion of an additional keyword. Kishore Nallan suggests trying prefix: false, but the issue persists.

Powered by Struct AI
Jun 17, 2023 (5 months ago)
Yuhong
Photo of md5-99fcea2c9d05e3ed48d3fc0dd8577af1
Yuhong
02:08 AM
When I search for XYZ15I get the following results but when I search for XYZ15 clinical, I only get the first result? I'm searching the same field, the only thing is this additional keyword that also appears in the text. I can't make sense of it at all
Image 1 for When I search for `XYZ15`I get the following results but when I search for `XYZ15 clinical`, I only get the first result? I'm searching the same field, the only thing is this additional keyword that also appears in the text. I can't make sense of it at all
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
04:15 AM
By default the last word in the query is treated as a prefix search. So in XYZ15 that word is treated as prefix, but in XYZ15 clinical the word clinical is treated as prefix. So this can change the results that are fetched. Can you try with prefix: false just to see what happens to both the queries?
Yuhong
Photo of md5-99fcea2c9d05e3ed48d3fc0dd8577af1
Yuhong
05:56 AM
Hm, didn't change anything. For reference, my query (python dict) looks like this:
{'filter_by': 'allowed_users:=PUBLIC', 'limit_hits': 50, 'num_typos': 2, 'per_page': 50, 'prefix': False, 'q': 'XYZ15 clinical', 'query_by': 'content'}

and I'm only changing the 'q' between the searches