Welcome to the new Box Support website. Check out all the details here on what’s changed.

Search API does not return any files

New post

Comments

4 comments

  • Priyajeet

    Search indexing takes about 10-15min after you upload.

    Assuming you just uploaded the file, maybe wait a bit and try?

    -1
    Comment actions Permalink
  • dh33

    The file has been in my account since the day I signed up. Thanks for the suggestion though.

    0
    Comment actions Permalink
  • davejagoda一

    Priyajeet wrote: "Search indexing takes about 10-15min after you upload."

     

    Is this documented somewhere? Is there a way to force the index to update immediately?

     

    Scenario: one program creates a new folder, another program wants to find it using the new folder's name.

     

    Workaround 1: have the first program remember the folder ID that was created and inform the second program.

     

    Workaround 2: second program lists out all folders and looks for a matching name

     

    Workaround 3: second program waits 15 minutes before searching

     

    Thoughts?

    0
    Comment actions Permalink
  • Brent

     The 10-minute delay is documented as part of the Search API endpoint reference. There is no option to force the index as this is a backend service that runs across all content stored in Box. The solutions you've suggested are feasible to workaround this limitation.

    0
    Comment actions Permalink

Post is closed for comments.