How to restrict getting Partial search results when we perform Metadata Search?
Hello,
We have implemented metadata search by integrating box SDK for the business purpose and we are using the below sample code by following the Box API reference
BoxSearchParameters params = new BoxSearchParameters();
params.setMetadataFilter(metadataFilter);
BoxSearch search = new BoxSearch(connection);
PartialCollection<BoxItem.Info> searchResults = search.searchRange(0, 1000, params);
Currently, we are experiencing problems with search results in some cases like
For Ex: When we are searching a string "test" as a value in the search attribute we are expected files with only the metadata attribute value "test" instead we are getting the files that have values "test-box", "test-box1" etc., we figure out the search is working as "Exact Matches" as specified in the below link:
Exact Matches link: https://developer.box.com/guides/search/query-operators/#exact-matches-with
Please suggest a way to get the search responses that have the exact string matches since we are unable to debug deep-dive into Box Native SDK classes.
Thanks,
Raja Vaghicharla
Please sign in to leave a comment.
Comments
1 comment