Skip to content

Latest commit

 

History

History
55 lines (44 loc) · 1.11 KB

elasticsearch.md

File metadata and controls

55 lines (44 loc) · 1.11 KB

Elasticsearch connector

Data provider configuration

  • type: "elasticsearch"
  • name: str, required
  • hosts: list of Host, required

Host configuration

  • url: str, required
  • port: int
  • username: str
  • password: str
  • headers: dict
DATA_PROVIDERS: [
  type:    'elasticsearch'
  name:    '<name>'
  hosts:    '<hosts>'
,
  ...
]

Data source configuration

  • domain: str, required
  • name: str, required
  • search_method: search or msearch, required
  • body: dict for search or list for msearch, required
  • index: str (required for search)
  • parameters: dict
DATA_SOURCES: [
  domain:    '<domain>'
  name:    '<name>'
  search_method:    '<search_method>'
  body:    '<body>'
  index:    '<index>'
  parameters:    '<parameters>'
,
  ...
]

Elasticsearch Search

Data will correspond to the field _source of the API response. See API documentation for :