mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-06-22 20:12:11 +00:00
Polishing.
This commit is contained in:
parent
1d6a1b0f2f
commit
fb9ccf7b44
@ -15,8 +15,6 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.data.elasticsearch.repository.query.parser;
|
package org.springframework.data.elasticsearch.repository.query.parser;
|
||||||
|
|
||||||
import java.util.Collection;
|
|
||||||
import java.util.Iterator;
|
|
||||||
import org.springframework.dao.InvalidDataAccessApiUsageException;
|
import org.springframework.dao.InvalidDataAccessApiUsageException;
|
||||||
import org.springframework.data.domain.Sort;
|
import org.springframework.data.domain.Sort;
|
||||||
import org.springframework.data.elasticsearch.core.geo.GeoBox;
|
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.data.repository.query.parser.PartTree;
|
||||||
import org.springframework.lang.Nullable;
|
import org.springframework.lang.Nullable;
|
||||||
|
|
||||||
|
import java.util.Collection;
|
||||||
|
import java.util.Iterator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ElasticsearchQueryCreator
|
* ElasticsearchQueryCreator
|
||||||
*
|
*
|
||||||
@ -115,8 +116,8 @@ public class ElasticsearchQueryCreator extends AbstractQueryCreator<CriteriaQuer
|
|||||||
case BETWEEN -> criteria.between(parameters.next(), parameters.next());
|
case BETWEEN -> criteria.between(parameters.next(), parameters.next());
|
||||||
case IN -> criteria.in(asArray(parameters.next()));
|
case IN -> criteria.in(asArray(parameters.next()));
|
||||||
case NOT_IN -> criteria.notIn(asArray(parameters.next()));
|
case NOT_IN -> criteria.notIn(asArray(parameters.next()));
|
||||||
case SIMPLE_PROPERTY, WITHIN -> this.within(part, criteria, parameters);
|
case SIMPLE_PROPERTY, WITHIN -> within(part, criteria, parameters);
|
||||||
case NEAR -> this.near(criteria, parameters);
|
case NEAR -> near(criteria, parameters);
|
||||||
case EXISTS, IS_NOT_NULL -> criteria.exists();
|
case EXISTS, IS_NOT_NULL -> criteria.exists();
|
||||||
case IS_NULL -> criteria.not().exists();
|
case IS_NULL -> criteria.not().exists();
|
||||||
case IS_EMPTY -> criteria.empty();
|
case IS_EMPTY -> criteria.empty();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user