Please read this. I'll try to explain what happened in my case.
In my scenario, one of the reasons “Index is under processing now” occurs is not because it's literally waiting for something. segments.gen
is actually not mapped correctly.
There are two repositories. One is my development repository (repo A), I made a lot of changes in this repo A. Adding, editting a lot of files made the segments.gen
to be updated. segments.gen
adds and edits files too for its mapping for indexing (searching) purposes. Now, I merged a big folder to the other repository (repo B). This caused the segments.gen
in the repo B to be out of sync.
What I did to solve this is issue is, I replaced the folder where the segments.gen
is located along with the other files (including the ones generated by segments.gen
) of repo B from repo A. Then, it works!