[Fixed #77804710] Global and Local index for query