Polishing.

This commit is contained in:
Peter-Josef Meisch 2023-12-12 18:58:34 +01:00
parent 1d6a1b0f2f
commit fb9ccf7b44
No known key found for this signature in database
GPG Key ID: DE108246970C7708

View File

@ -15,8 +15,6 @@
*/
package org.springframework.data.elasticsearch.repository.query.parser;
import java.util.Collection;
import java.util.Iterator;
import org.springframework.dao.InvalidDataAccessApiUsageException;
import org.springframework.data.domain.Sort;
import org.springframework.data.elasticsearch.core.geo.GeoBox;
@ -35,6 +33,9 @@ import org.springframework.data.repository.query.parser.Part;
import org.springframework.data.repository.query.parser.PartTree;
import org.springframework.lang.Nullable;
import java.util.Collection;
import java.util.Iterator;
/**
* ElasticsearchQueryCreator
*
@ -115,8 +116,8 @@ public class ElasticsearchQueryCreator extends AbstractQueryCreator<CriteriaQuer
case BETWEEN -> criteria.between(parameters.next(), parameters.next());
case IN -> criteria.in(asArray(parameters.next()));
case NOT_IN -> criteria.notIn(asArray(parameters.next()));
case SIMPLE_PROPERTY, WITHIN -> this.within(part, criteria, parameters);
case NEAR -> this.near(criteria, parameters);
case SIMPLE_PROPERTY, WITHIN -> within(part, criteria, parameters);
case NEAR -> near(criteria, parameters);
case EXISTS, IS_NOT_NULL -> criteria.exists();
case IS_NULL -> criteria.not().exists();
case IS_EMPTY -> criteria.empty();