Search API Problem
Hi all,
We are having problems using the Custom App ( Service Account ). The search API ( python: client.search().query("something", acestor_folders = [ancestor_folder] ) will not return the desired folder. It will return folder with name that contains the search string "OTHERNAME_something" instead of the name "something" itself. Meanwhile, if I do
folder = client.folder("id of something").get()
and
folder.get_items()
it will show up in the list.
Also the latest folder won't show up in the search().query() either. Just wondering what i did wrong, and what can fix this problem
I truely appreciate your help!
Thanks!
-
Hi ,
Nothing you're doing wrong from what I can see what your explanation. The search API currently functions slightly differently than the web app in that the search query string will be matched as full or part of the file name, then return all results without ranking. There are some improvements being developed that should impart better categorization of the result set, but those are not live yet.
For the latest folder, that is most likely due to the indexing delay. If you upload / create new content within Box there will be a 5-10 min indexing delay before it's available via search. My guess is that's probably what's happening here.
- Jon
-
I'm trying to make a call via box search API everything looks fine but it seems search API returns the wrong result. The filter not working as expected. I do expect one file because I have only 1 file with the prefix FilePrefix_on_07132022 but it returns 200.
My filter : FilePrefix_on_07132022*
but it returns all other files with FilePrefix_on_08*. too
I wonder if using '*' works or not. It seems not
Paramters send
Post is closed for comments.
Comments
2 comments