solr-client2

A Solr client library for indexing, adding, deleting, committing, optimizing and searching documents within an Apache Solr installation (version>=3.2)

Usage no npm install needed!

<script type="module">
  import solrClient2 from 'https://cdn.skypack.dev/solr-client2';
</script>

README

NPM

Please see https://github.com/lbdremy/solr-node-client

Seems above didn't have highlight support, Only add Query.customer(key, value)

For example, you can use query below to highlight title:

  query = solrClient.createQuery().q
    title: 'xxx' 
  .customer 'hl', 'true'
  .customer 'hl.fl', 'title'