Socket
Socket
Sign inDemoInstall

@e2y/solr-client

Package Overview
Dependencies
0
Maintainers
6
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@e2y/solr-client

Solr client for SAP Commerce using native fetch from NodeJS.


Version published
Maintainers
6
Weekly downloads
1,404
increased by1.08%

Weekly downloads

Readme

Source

Solr Client

Table of contents

  • Installation
  • Usage

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',
//     ...

FAQs

Last updated on 22 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc