Full text search index progress status

Hi,
My question is about full text search indexes and maybe with gocb.
I come face to face with getting data issue. When I create an index and it’s starting to analyze I can’t get any data. I’m aware of the process is not finished and that’s the reason of our data hasn’t arrived yet. Can I get a response about the progress, is there any endpoint for it or a function in gocb? It’s important for me to get the status of the index. I think about the status of the indexing progress, not the status of the creation. Or can you suggest me any solution for this issue?

Hey @borosr, full text search indexes with couchbase are searchable while they’re building. If you’d rather wait for the index to complete building before running search requests, you’d be able to extract the indexed doc count and the source doc count from the index to estimate the stage of index build.

On the UI you should be able to see “Indexing Progress” that is calculated using the above stats.

Here’s the end point to fetch the indexed “count”…

curl -XGET http://<username>:<password>@<ip>:8094/api/index/<indexname>/count

The source doc count is available as “docCount” in the group of stats available at this end point …

curl -XGET http://<username>:<password>@<ip>:8094/api/stats/sourceStats/<indexname>