I have been facing a problem when using a search api. basically I am using a keyword like 'JAN-18' to find out the files which contains the keyword. As we knows that Search api has limit to return maximum of 200 files per api call. As i have thousands of files that contains that keyword like JAN-18 and i have a scenario to move that files which contain that keyword .so i have to apply the iteration unless all file moved containing that particular keyword to the destination folder.So In first iteration it is giving me the files and i am using another api to move those files to the destination folder and it is getting moved to destination folder and counter is getting decrease from the ancestor folder.
for reference :
But now the problem arises here is , on my 2nd iteration it is giving me the same set of files and same total count no. as it is giving me in the first iteration despite the files are not now present in the ancestor folder/source folder. I wonder why ?
but if i do another iteration after some time then it is giving me different total count from api.
Is there any tool or framework that search api using for indexing like apache solr that takes some time to update the indexing. please let me know the reason behind it.
Please suggest the solution or any workaround for this problem.
Please sign in to leave a comment.