added a new api to lookup composite index