Giter Club home page Giter Club logo

solr-client's Introduction

ECMAScript Client for Apache Solr

API

This library provides two entry points, one for querying and one for loading data into a solr core.

solr-client

const solr = require("solr-client");
const index = solr({url: "URL to the Solr instance that I want to address..."});
const core = index("Name of the core that I want to address");
let results = core.select{ queryOptions }

The queryOptions parameter is expecting a ECMAScript object with keys corresponding to the parameters that your Solr query parser understands, e.g.

let queryOptions = {
    q: "Tübingen",
    df: "full_text",
    start: 0,
    rows: 10
}

The select function returns an object with the keys responseHeader and response.

solr-loader

solr-loader is a tool intended for command line usage. It can be called with the following parameters:

The basic call syntax is

solr-loader URL SOURCEGLOB

A number of optional parameters can be used:

solr-loader --clear --batch 50 --core CORENAME --swap SWAPCORENAME --schema JSONSCHEMA --encoding ENCODING --optimize URL SOURCEGLOB

If a swap parameter is given, data is first loaded into the core and once all data is processed, the core and swapcore are swapped. The default encoding is "utf-8", the default batch size 1.

License

BSD

Author Information

This library was created in 2018 by Pagina GmbH.

solr-client's People

Contributors

dependabot[bot] avatar gremid avatar sermo-de-arboribus avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.