code: public static ComparePathQuery createQueryForNodesWithPathGreaterThan( Path constraintPath,
                                                                             String fieldName,
                                                                             ValueFactories factories,
                                                                             Function<String, String> caseOperation) {
          return new ComparePathQuery(fieldName, constraintPath, factories.getPathFactory(),
                                      (path1, path2) -> PATH_COMPARATOR.compare(path1, path2) > 0, caseOperation);
      }
docs: Construct a {@link Query} implementation that scores documents such that the node represented by the document has a path
  that is greater than the supplied constraint path.
  
  @param constraintPath the constraint path; may not be null
  @param fieldName the name of the document field containing the path value; may not be null
  @param factories the value factories that can be used during the scoring; may not be null
  @param caseOperation the operation that should be performed on the indexed values before the constraint value is being
  evaluated; may be null which indicates that no case conversion should be done
  @return the path query; never null