@elastic/enterprise-search
TypeScript icon, indicating that this package has built-in type declarations

8.6.1 • Public • Published

Elastic Enterprise Search

js-standard-style Build Status. Node CI

Official Node.js client for Elastic Enterprise Search, App Search, and Workplace Search.

ℹ️ Read the full documentation for this client at elastic.co.

Install

npm install @elastic/enterprise-search

Quick start

const { Client } = require('@elastic/enterprise-search')
const client = new Client({
  url: 'http://localhost:3002',
  // basic auth
  auth: {
    username: 'elastic',
    password: 'changeme'
  }
  // bearer auth
  auth: {
    token: 'my-token'
  }
})

// Enterprise Search API
const response = await client.enterprise.getHealth()
console.log(response)

// App Search API
const response = await client.app.search({
  engine_name: 'games',
  body: {
    query: 'Pack-Man'
  }
})
console.log(response)

// Workplace Search API
const response = await client.workplace.getDocument({
  content_source_id: 'test',
  document_id: 'id'
})
console.log(response)

License

This software is licensed under the Apache 2 license.

Package Sidebar

Install

npm i @elastic/enterprise-search

Weekly Downloads

7,262

Version

8.6.1

License

Apache-2.0

Unpacked Size

274 kB

Total Files

46

Last publish

Collaborators

  • jbwelastic
  • weronika-olejniczak
  • kibanamachine
  • obltmachine
  • kc13greiner
  • elena-shostak
  • miguel-elastic
  • lenegadewoll
  • cbishopewc
  • cindy_c
  • asnyder-elastic
  • lgestc
  • patryk.kopycinski
  • banerjeesoham004
  • legrego
  • bradtimmerman
  • yan.savitski
  • jeramysoucy
  • tkajtoch
  • johnwcambra
  • colleen.mcginnis
  • kyrspl
  • phoey1
  • verogo
  • breehall
  • jen-huang
  • delvedor
  • lukasolson
  • ccowan
  • jbudz
  • thomasneirynck
  • weltenwort
  • pugnascotia
  • zinckiwi
  • brandon.kobel
  • nreese
  • mgreau
  • jonahbull
  • jarpy
  • leathekd
  • lukeelmers
  • ddillinger
  • joshdover
  • jasonstoltz
  • bamieh
  • markov00
  • joshmock
  • vignesh.shanmugam
  • watson
  • rhodesjason
  • jmlrt
  • mattkime
  • constancecchen
  • afoucret
  • nickpeihl
  • axw
  • mistic
  • elasticmachine
  • gtback
  • pickypg
  • trentm
  • andrewvc-elastic
  • jorge.sanz
  • stratoula
  • nkammah
  • streamich
  • nickofthyme
  • chloeruka