public class GeoBoundingBoxQuery extends Object implements Query
Use case example: In the scenario of order area profile analysis, if you want to analyze the purchasing power of Area A, which happens to be rectangular, we can achieve this by counting the number of orders (or total price) in Area A.
Method: Construct a BoolQuery in the SearchQuery, place a rectangular geographical location using a GeoBoundingBoxQuery in its mustQueries, then add another query for counting the orders into the mustQueries, and you will get the desired result.
| 限定符和类型 | 类和说明 |
|---|---|
static class |
GeoBoundingBoxQuery.Builder |
| 构造器和说明 |
|---|
GeoBoundingBoxQuery() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getBottomRight() |
String |
getFieldName() |
QueryType |
getQueryType() |
String |
getTopLeft() |
protected static GeoBoundingBoxQuery.Builder |
newBuilder() |
com.aliyun.ots.thirdparty.com.google.protobuf.ByteString |
serialize() |
void |
setBottomRight(String bottomRight) |
void |
setFieldName(String fieldName) |
void |
setTopLeft(String topLeft) |
public String getFieldName()
public void setFieldName(String fieldName)
public String getTopLeft()
public void setTopLeft(String topLeft)
public String getBottomRight()
public void setBottomRight(String bottomRight)
public QueryType getQueryType()
getQueryType 在接口中 Querypublic com.aliyun.ots.thirdparty.com.google.protobuf.ByteString serialize()
protected static GeoBoundingBoxQuery.Builder newBuilder()
Copyright © 2025. All Rights Reserved.