|
1 | | -<p align="center"><img src="https://github.com/elastic/enterprise-search-node/blob/master/logo-enterprise-search.png?raw=true" alt="Elastic Enterprise Search Logo"></p> |
| 1 | +<p align="center"><a href="https://circleci.com/gh/elastic/workplace-search-node"><img src="https://circleci.com/gh/elastic/workplace-search-node.svg?style=svg" alt="CircleCI build"></a></p> |
2 | 2 |
|
3 | | -<p align="center"><a href="https://circleci.com/gh/elastic/enterprise-search-node"><img src="https://circleci.com/gh/elastic/enterprise-search-node.svg?style=svg" alt="CircleCI build"></a></p> |
4 | | - |
5 | | -> A first-party Node.js client for [Elastic Enterprise Search](https://www.elastic.co/solutions/enterprise-search). |
| 3 | +> A first-party Node.js client for [Elastic Workplace Search](https://www.elastic.co/workplace-search). |
6 | 4 |
|
7 | 5 | ## Contents |
8 | 6 |
|
|
19 | 17 | With npm: |
20 | 18 |
|
21 | 19 | ```bash |
22 | | -npm install @elastic/enterprise-search-node |
| 20 | +npm install @elastic/workplace-search-node |
23 | 21 | ``` |
24 | 22 |
|
25 | 23 | or clone locally: |
26 | 24 |
|
27 | 25 | ```bash |
28 | | -git clone git@github.com:elastic/enterprise-search-node.git |
29 | | -cd enterprise-search-node |
| 26 | +git clone git@github.com:elastic/workplace-search-node.git |
| 27 | +cd workplace-search-node |
30 | 28 | npm install |
31 | 29 | ``` |
32 | 30 |
|
33 | 31 | ## Usage |
34 | 32 |
|
35 | | -Create a new instance of the Elastic Enterprise Search Client with your access token: |
| 33 | +Create a new instance of the Elastic Workplace Search Client with your access token: |
36 | 34 |
|
37 | 35 | ```javascript |
38 | | -const EnterpriseSearchClient = require('@elastic/enterprise-search-node') |
| 36 | +const WorkplaceSearchClient = require('@elastic/workplace-search-node') |
39 | 37 | const accessToken = '' // your access token |
40 | | -const client = new EnterpriseSearchClient(accessToken) |
| 38 | +const client = new WorkplaceSearchClient(accessToken) |
41 | 39 | ``` |
42 | 40 |
|
43 | 41 | ### Change API endpoint |
44 | 42 |
|
45 | 43 | ```javascript |
46 | | -const client = new EnterpriseSearchClient( |
| 44 | +const client = new WorkplaceSearchClient( |
47 | 45 | accessToken, |
48 | | - 'https://your-server.example.com/api/v1/ent' |
| 46 | + 'https://your-server.example.com/api/ws/v1' |
49 | 47 | ) |
50 | 48 | ``` |
51 | 49 |
|
@@ -193,17 +191,17 @@ $ npm test |
193 | 191 |
|
194 | 192 | ### Where do I report issues with the client? |
195 | 193 |
|
196 | | -If something is not working as expected, please open an [issue](https://github.com/elastic/enterprise-search-node/issues/new). |
| 194 | +If something is not working as expected, please open an [issue](https://github.com/elastic/workplace-search-node/issues/new). |
197 | 195 |
|
198 | 196 | ## Contribute 🚀 |
199 | 197 |
|
200 | 198 | We welcome contributors to the project. Before you begin, a couple notes... |
201 | 199 |
|
202 | | -- Before opening a pull request, please create an issue to [discuss the scope of your proposal](https://github.com/elastic/enterprise-search-node/issues). |
| 200 | +- Before opening a pull request, please create an issue to [discuss the scope of your proposal](https://github.com/elastic/workplace-search-node/issues). |
203 | 201 | - Please write simple code and concise documentation, when appropriate. |
204 | 202 |
|
205 | 203 | ## License 📗 |
206 | 204 |
|
207 | | -[Apache 2.0](https://github.com/elastic/enterprise-search-node/blob/master/LICENSE.txt) © [Elastic](https://github.com/elastic) |
| 205 | +[Apache 2.0](https://github.com/elastic/workplace-search-node/blob/master/LICENSE.txt) © [Elastic](https://github.com/elastic) |
208 | 206 |
|
209 | | -Thank you to all the [contributors](https://github.com/elastic/enterprise-search-node/graphs/contributors)! |
| 207 | +Thank you to all the [contributors](https://github.com/elastic/workplace-search-node/graphs/contributors)! |
0 commit comments