# new EsCatlogService(option)
Zondy.DataStore.ElasticSearch.EsCatlogService-根据数据库结构枚举目录,枚举库列表、表列表
参数:
名称 | 类型 | 属性 | 默认值 | 描述 |
---|---|---|---|---|
option |
Object | 属性键值对 |
||
indexName |
String |
<optional> |
库名称 |
|
classify |
EsCatlogType |
<optional> |
类别,地址库、时空库等 |
|
keyWords |
String |
<optional> |
关键字 |
|
pageSize |
Number |
<optional> |
100 | 每页大小 |
pageNo |
Number |
<optional> |
1 | 页码,从1开始 |
Example
http://192.168.96.101:9091/datastore/rest/catalog/es/services/?
indexName=sp_taxibj_200_2
&classify=sptype
&keyWords='出租车'
&pageSize=0
&pageNo=4
成员变量
# classify
类别,地址库、时空库等
- Default Value:
- null
查看源代码 service/datastore/elasticsearch/EsCatlogService.js, line 45
# indexName
库名称
- Default Value:
- null
查看源代码 service/datastore/elasticsearch/EsCatlogService.js, line 37
# keyWords
关键字
- Default Value:
- null
查看源代码 service/datastore/elasticsearch/EsCatlogService.js, line 53
# pageNo
页码,从1开始
- Default Value:
- null
查看源代码 service/datastore/elasticsearch/EsCatlogService.js, line 69
# pageSize
每页大小
- Default Value:
- null
查看源代码 service/datastore/elasticsearch/EsCatlogService.js, line 61
# serviceUrl
时空聚类查询地址
- Default Value:
- /datastore/rest/catalog/es/services/
查看源代码 service/datastore/elasticsearch/EsCatlogService.js, line 29
方法
# query(onSuccess, onError)
查询函数,向服务器发送请求,返回geosjon格式数据
参数:
名称 | 类型 | 描述 |
---|---|---|
onSuccess |
function | 查询成功回调函数。 |
onError |
function | 查询失败回调函数。 |