flexiblesearch

0.0.9 • Public • Published

FlexibleSearch

A node module to run flexiblesearch hybris queries without a browser.

API

class flexiblesearch

The flexiblesearch module provides 2 methods:

flexiblesearch.initialize([options])

  • options <Object, optional> An optional object to configure flexiblesearch instance

    • username <String> Username to log into Hybris admin console with. If options is not provided, this defaults to 'admin'
    • password <String> Password to log into Hybris admin console with. if options is not provided, this defaults to 'nimda'
    • url <String> Hybris admin console URL. If options is not provided, this defaults to 'https://localhost:9002/admin'
  • returns null

flexiblesearch.query(querytext)

  • querytext <String> Flexiblesearch query
  • returns <Array> containing objects. Keys in objects correspond to fields in hybris table.

Example Usage

const f = require('flexiblesearch');

const options = {
    username: "admin",
    password: "nimda",
    url: "https://localhost:9002/admin",
};

f.initialize(options);
f.query("SELECT * FROM {GroceryProduct}")
.then(console.log);

TODO

  • Return more than first 10 results
  • Clean up code

Readme

Keywords

none

Package Sidebar

Install

npm i flexiblesearch

Weekly Downloads

1

Version

0.0.9

License

ISC

Last publish

Collaborators

  • g2jose