1.0.3 • Published 2 months ago
@e2y/solr-client v1.0.3
Solr Client
Table of contents
Installation
Execute this command in your terminal:
yarn add @e2y/solr-client
Usage
Create a client
import {SolrClient} from "@e2y/solr-client";
const solrClient = await new SolrClient(
'https://localhost:8983/solr/'
);
Query for documents
const products = await solrClient.getIndexedItems(
'master_apparel-de_Product_default',
{
code_string: '35099'
}
);
console.log(products);
// {
// numFound: 2,
// start: 0,
// numFoundExact: true,
// docs: [
// {
// indexOperationId: 110822996999537399,
// id: 'apparelProductCatalog/Staged/35099',
// pk: 8796093186049,
// code_string: '35099',
// catalogId: 'apparelProductCatalog',
// ...
1.0.2
2 months ago
1.0.3
2 months ago
1.0.1
9 months ago
0.0.3
2 years ago
0.0.5
1 year ago
0.0.4
2 years ago
0.0.6
1 year ago
0.0.2
4 years ago
0.0.1
4 years ago
0.0.1-alpha.3
4 years ago
0.0.1-alpha.2
4 years ago
0.0.1-alpha.1
4 years ago
0.0.1-alpha.0
4 years ago