Hi, I'm trying to search and return multiple docs ...
# community-help
m
Hi, I'm trying to search and return multiple docs matching the query but I'm unable to do so. Its always returning the first query and ignoring the rest. For eg: If I do q: Pune Chennai Docs containing both Pune and Chennai is available but for the above I always get docs with only Pune. If I do q: Chennai Pune I always get docs with Chennai. Is there any parameters to add to enable this feature? Thanks
k
If docs contain both, it should be returned. Please share a reproducible example to show the error.
m
Hi @Kishore Nallan attached some screenshots below. 1. Searching FTL10003214 and FTL10002234 result of FTL10003214 is returned. { q: 'FTL10003214 OR FTL10002234', query_by: 'loadNumber', filter_by: '', page: 1, per_page: 250, sort_by: 'createdAt:desc', prefix: false, infix: 'always' }
2. Searching FTL10002234 and FTL10003214 result of FTL10002234 is returned. { q: 'FTL10002234 OR FTL10003214', query_by: 'loadNumber', filter_by: '', page: 1, per_page: 250, sort_by: 'createdAt:desc', prefix: false, infix: 'always' }
k
We don't support
OR
syntax in query
m
{ q: 'FTL10002234 FTL10003214', query_by: 'loadNumber', filter_by: '', page: 1, per_page: 250, sort_by: 'createdAt:desc', prefix: false, infix: 'always' } Even with this query only first word "FTL10002234" matching doc is returned. Is there any improvement we can do over here? Thanks
Hey @Kishore Nallan will be glad if you can help me over here. Thanks
k
Take a look at drop_tokens_threshold and drop_tokens_mode search parameters.
m
Sure, Thanks