To use the Indexes API, install the @wix/data package using npm or Yarn:
@wix/data
or
Then import { indexes } from @wix/data:
{ indexes }