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

Search Api Problem

New post

Comments

6 comments

  • mwiller

     According to the Search API documentation"Newly added or changed items are indexed and available via Box search in less than 10 minutes in most cases. The current service load determines the index time and it may take more than 10 minutes in some cases."  So, after moving the files it may take some time before those changes are reflected in the search results.

    0
    Comment actions Permalink
  • jaspreetsingh00

    It means if we are using search api to fetch files then on 2nd iteration we should apply timeout of 10 minutes to get the right count or to fetch different set of files ?

    0
    Comment actions Permalink
  • mwiller

     As noted in the documentation snippet I posted, the indexing delay isn't deterministic, and may be longer or shorter than 10 minutes.  So, a 10-minute timeout will likely help, but isn't guaranteed to produce exactly the results you're looking for.

    0
    Comment actions Permalink
  • jaspreetsingh00

    Actually applying timeout is not a good approach . Is there any such api to check whether the indexing of search api has been done or not  or other alternate to determine the indexing time?  or any workaround to tackle this indexing problem through any api ?

     

    Can we maximize the limit to fetch files around 1000 files or beyond that through search api ?

    0
    Comment actions Permalink
  • mwiller

     Unfortunately, there is no such API for determining when indexing has been performed.  Per the Search API documentation, the maximum number of results that can be fetched per Search API call (by setting the `limit` query parameter) is 200.

    0
    Comment actions Permalink
  • jaspreetsingh00

    Thanks   for answering to my queries !!

    0
    Comment actions Permalink

Please sign in to leave a comment.