algoliasearch-client-javascript
algoliasearch-client-javascript copied to clipboard
⚡️ A fully-featured and blazing-fast JavaScript API client to interact with Algolia.
Reading both the code of our [createBrowserXhrRequester](https://github.com/algolia/algoliasearch-client-javascript/blob/e6dec843932bdfaac13ffa1e0a11964975499078/packages/requester-browser-xhr/src/createBrowserXhrRequester.ts#L26) and [createNodeHttpRequester](https://github.com/algolia/algoliasearch-client-javascript/blob/3818322a57768798d41b1737603c67a90ce2e4a5/packages/requester-node-http/src/createNodeHttpRequester.ts#L74) I think the way we implemented the "Connection timeout" is really wrong. This timeout should trigger when it took more than...
hello team, I played with the client today and while doing so ended up blocked by (another) readonly issue. I can not conditionnally construct the options because the `requester` and...
```js index.setSettings({ 'customRanking': ['desc(followers)'] }).then(() => { index.search('query string', { attributesToRetrieve: ['firstname', 'lastname'], hitsPerPage: 50, }).then(({ hits }) => { console.log(hits); }); }); ``` I wrote code like above, but...
It happens quite often that Firebase users reports connectivity issues to Algolia. Errors like: - `NetworkError: connect ETIMEDOUT` - `{"name":"RetryError","message":"Unreachable hosts - your application id may be incorrect. If the...
I want to be able to add a custom method, at instantiation of `algoliasearch`, but without monkeypatching. ``` algoliasearch('xxx','yyy', { methods: { initPlaces } }) ``` Right now this isn't...
Hi! I noticed when using `algoliasearch/lite` in TypeScript that there is no type definition for `multipleQueries`, even though it is clearly exported and is actually the same as `search`. Here's...
Hi, I started using the v4 and had some type issues with the `transporter`: https://github.com/algolia/algoliasearch-client-javascript/blob/97dbe4e5f4259d26670c6abb3527aa276f59513f/packages/transporter/src/types/Transporter.ts#L78-L93 `read` and `write` return a `ReadOnly` which is a nice intent but makes it incompatible...
Because the way of how spread work and how typescript handles Readonly it's quite hard to set hosts dynamically. ```js const hosts; // undefined by default const test = {...
the [Settings](https://github.com/algolia/algoliasearch-client-javascript/blob/master/packages/client-search/src/types/Settings.ts) type has all its properties being `readonly`. Since it is begin used in the client through the `getSettings` and `settings` methods, this `readonly` limitation makes its use very...
The engine is introducing a new feature allowing to optionally compress request payloads (ie. POST/PUT body, http or https). To test it: Perform a `saveObject` with the content encoded with...