algoliasearch

WebJar for algoliasearch

Лицензия

Лицензия

MIT
Категории

Категории

JavaScript Языки программирования Github Инструменты разработки Контроль версий CLI Взаимодействие с пользователем Search Прикладные библиотеки
Группа

Группа

org.webjars.bower
Идентификатор

Идентификатор

github-com-algolia-algoliasearch-client-javascript
Последняя версия

Последняя версия

3.18.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

algoliasearch
WebJar for algoliasearch
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/algolia/algoliasearch-client-javascript

Скачать github-com-algolia-algoliasearch-client-javascript

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.bower/github-com-algolia-algoliasearch-client-javascript/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>github-com-algolia-algoliasearch-client-javascript</artifactId>
    <version>3.18.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/github-com-algolia-algoliasearch-client-javascript/
implementation 'org.webjars.bower:github-com-algolia-algoliasearch-client-javascript:3.18.1'
// https://jarcasting.com/artifacts/org.webjars.bower/github-com-algolia-algoliasearch-client-javascript/
implementation ("org.webjars.bower:github-com-algolia-algoliasearch-client-javascript:3.18.1")
'org.webjars.bower:github-com-algolia-algoliasearch-client-javascript:jar:3.18.1'
<dependency org="org.webjars.bower" name="github-com-algolia-algoliasearch-client-javascript" rev="3.18.1">
  <artifact name="github-com-algolia-algoliasearch-client-javascript" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='github-com-algolia-algoliasearch-client-javascript', version='3.18.1')
)
libraryDependencies += "org.webjars.bower" % "github-com-algolia-algoliasearch-client-javascript" % "3.18.1"
[org.webjars.bower/github-com-algolia-algoliasearch-client-javascript "3.18.1"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

Algolia for JavaScript

The perfect starting point to integrate Algolia within your JavaScript project

NPM version NPM downloads jsDelivr Downloads License

DocumentationInstantSearchCommunity ForumStack OverflowReport a bugFAQSupport

Migration note from v3.x to v4.x

In February 2020, we released v4 of our JavaScript client. If you are using version 3.x of the client, read the migration guide to version 4.x. Version 3.x will no longer be under active development.

Features

  • Thin & minimal low-level HTTP client to interact with Algolia's API
  • Works both on the browser and node.js
  • UMD compatible, you can use it with any module loader
  • Built with TypeScript

💡 Getting Started

First, install Algolia JavaScript API Client via the npm package manager:

npm install algoliasearch

Then, create objects on your index:

const algoliasearch = require("algoliasearch");

const client = algoliasearch("YourApplicationID", "YourAdminAPIKey");
const index = client.initIndex("your_index_name");

const objects = [
  {
    objectID: 1,
    name: "Foo"
  }
];

index
  .saveObjects(objects)
  .then(({ objectIDs }) => {
    console.log(objectIDs);
  })
  .catch(err => {
    console.log(err);
  });

Finally, let's actually search using the search method:

index
  .search("Fo")
  .then(({ hits }) => {
    console.log(hits);
  })
  .catch(err => {
    console.log(err);
  });

For full documentation, visit the online documentation.

Troubleshooting

Encountering an issue? Before reaching out to support, we recommend heading to our FAQ where you will find answers for the most common issues and gotchas with the client.

📄 License

Algolia JavaScript API Client is an open-sourced software licensed under the MIT license.

org.webjars.bower

Algolia

Open source tools for building search. Learn more at community.algolia.com

Версии библиотеки

Версия
3.18.1