Hi there,
For a custom load balancing index updater I need to find all available indexes and their builds (full disclosure, we're using DFS which synchronizes files rather than share them; this means we need to exclude the index files which in turn means we need to update them remotely)
For now, I have this:
private const string BaseIndexUrl = "http://{0}/Admin/Api/repositories/build/eCommerce/eCommerce-index-index/{1}/eCommerce/";
where {0} is replaced with the remote IP and {1} with a hard coded value of A and B for the two builds. This code assumes the index is called eCommerce.
However, I now have another site that has multiple indexes (for users and products) and different builds.
How do I make this more generic? Is there an API I can use to get all indexes and builds? Or a folder on disk I can analyze for this data?
Thanks!
Imar