Prerequisites:
Server version 6.5.1 CE
Problem statement:
Get nodes where index hosted on.
Case:
For instance i have following index:
CREATE INDEX promo-date-cache-by-day-productId
ON promo-date-cache
(day
,productId
) WHERE (productId
= “1”) WITH { “nodes”:[ “172.18.0.2:8091” ] }
I try to use SELECT * from system:indexes
but it always returning "datastore_id": "http://127.0.0.1:8091"
Same time I see than I call REST API http://localhost:8091/indexStatus
it returns correct "hosts": ["172.18.0.2:8091"]
The question is what query or combination of queries REST API used for ?