GithubHelp home page GithubHelp logo

vinaykakade / opensearch-js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from opensearch-project/opensearch-js

0.0 0.0 0.0 19.41 MB

Node.js Client for OpenSearch

Home Page: https://opensearch.org/docs/latest/clients/javascript/

License: Apache License 2.0

Shell 0.18% JavaScript 95.07% TypeScript 4.71% Makefile 0.05%

opensearch-js's Introduction

Nodejs Integration Bundler codecov Chat PRs welcome!

OpenSearch logo

OpenSearch Node.js client

Welcome!

opensearch-js is a community-driven, open source fork of elasticsearch-js licensed under the Apache v2.0 License. For more information, see opensearch.org.

Example use

The OpenSearch JavaScript client provides a safer and easier way to interact with your OpenSearch cluster. Rather than using OpenSearch from the browser and potentially exposing your data to the public, you can build an OpenSearch client that takes care of sending requests to your cluster.

The client contains a library of APIs that let you perform different operations on your cluster and return a standard response body. The example here demonstrates some basic operations like creating an index, adding documents, and searching your data.

Setup

To add the client to your project, install it with npm:

npm i @opensearch-project/opensearch

If you prefer to add the client manually or just want to examine the source code, see opensearch-js on GitHub.

Then require the client:

const { Client } = require('@opensearch-project/opensearch');

Sample code

Please see the USER_GUIDE for code snippets.

Project Resources

Code of Conduct

This project has adopted the Amazon Open Source Code of Conduct. For more information see the Code of Conduct FAQ, or contact [email protected] with any additional questions or comments.

License

This project is licensed under the Apache v2.0 License.

Copyright

Copyright OpenSearch Contributors. See NOTICE for details.

opensearch-js's People

Contributors

delvedor avatar spalger avatar dependabot[bot] avatar github-actions[bot] avatar spenceralger avatar ananzh avatar nhtruong avatar szabosteve avatar vachashah avatar lukasolson avatar ycombinator avatar nicksqain avatar clintongormley avatar timursaurus avatar wielmany avatar amoo-miki avatar jmm avatar harshavamsi avatar gaiksaya avatar dependabot-preview[bot] avatar nik9000 avatar rawpixel-vincent avatar almmiko avatar lcawl avatar marcelog avatar mpdreamz avatar mattlorey avatar robdasilva avatar saschagoebel avatar tejeshreddy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.