EsCatlogService Class

弹性搜索服务.EsCatlogService(option)

枚举目录树结果

Fx构造函数

# 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开始

作者:
  • 基础平台-潘卓然
See:

查看源代码 service/datastore/elasticsearch/EsCatlogService.js, line 5

Example
http://192.168.96.101:9091/datastore/rest/catalog/es/services/?
indexName=sp_taxibj_200_2
&classify=sptype
&keyWords='出租车'
&pageSize=0
&pageNo=4

成员变量

String

# classify

类别,地址库、时空库等

Default Value:
  • null

查看源代码 service/datastore/elasticsearch/EsCatlogService.js, line 45

String

# indexName

库名称

Default Value:
  • null

查看源代码 service/datastore/elasticsearch/EsCatlogService.js, line 37

String

# keyWords

关键字

Default Value:
  • null

查看源代码 service/datastore/elasticsearch/EsCatlogService.js, line 53

Number

# pageNo

页码,从1开始

Default Value:
  • null

查看源代码 service/datastore/elasticsearch/EsCatlogService.js, line 69

Number

# pageSize

每页大小

Default Value:
  • null

查看源代码 service/datastore/elasticsearch/EsCatlogService.js, line 61

String

# serviceUrl

时空聚类查询地址

Default Value:
  • /datastore/rest/catalog/es/services/

查看源代码 service/datastore/elasticsearch/EsCatlogService.js, line 29

方法

# query(onSuccess, onError)

查询函数,向服务器发送请求,返回geosjon格式数据

参数:
名称 类型 描述
onSuccess function

查询成功回调函数。

onError function

查询失败回调函数。

查看源代码 service/datastore/elasticsearch/EsCatlogService.js, line 78