1.0.0 • Published 10 months ago

@adobe/contentlake-shared-search-index v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
10 months ago

Content Lake Shared - Search Index

Wrapper for using Algolia Search Index JS API

This is one of the Content Lake Shared libraries.

Status

GitHub license

Usage

Install using:

npm install @adobe/contentlake-shared-search-index

Use with:

import { SearchIndex } from '@adobe/contentlake-shared-search-index';


const searchIndex = new SearchIndex(context, companyId);

saveResult = await searchIndex.save({
  file: '234.jpg',
  sourceName: 'file-2.jpg',
  tags: ['animal', 'cat']
});