public IndexData getIndex(String regionPath, String[] definitions, IndexType indexType,
      CompiledValue indexedExpression, ExecutionContext context)
      throws TypeMismatchException, NameResolutionException {
    Region region = cache.getRegion(regionPath);
    if (region == null) {
      return null;
    }
    IndexManager indexManager = IndexUtils.getIndexManager(cache, region, true);
    IndexData indexData = indexManager.getIndex(indexType, definitions, indexedExpression, context);
    return indexData;
  }
Asif : Gets an exact match index ( match level 0)

@param regionPath String containing the region name
@param definitions An array of String objects containing canonicalized definitions of
       RuntimeIterators. A Canonicalized definition of a RuntimeIterator is the canonicalized
       expression obtainded from its underlying collection expression.
@param indexType IndexType object which can be either of type RangeIndex or PrimaryKey Index
@param indexedExpression CompiledValue containing the path expression on which index needs to
       be created
@param context ExecutionContext
@return IndexData object
geode-core/src/main/java/org/apache/geode/cache/query/internal/DefaultQueryService.java