@elastic/search-ui
A Headless Search UI library
Last updated 4 years ago by jasonstoltz .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @elastic/search-ui 
SYNC missed versions from official npm registry.

search-ui

Part of the Search UI project.

The "Headless Search UI" that serves as a foundation for the react-search-ui library.

If you are not using React, this library can be used in conjunction with any other framework. Instead of working with components as you do in React, you simply work directly with state and actions. These are documented in the State and Actions sections of the documentation.

You'll get all of the benefit of Search UI, just with no view. The view is up to you.

Usage

npm install --save @elastic/search-ui
import { SearchDriver } from "@elastic/search-ui";
import AppSearchAPIConnector from "@elastic/search-ui-app-search-connector";

const connector = new AppSearchAPIConnector({
  searchKey: "search-371auk61r2bwqtdzocdgutmg",
  engineName: "search-ui-examples",
  hostIdentifier: "host-2376rb"
});

const config = {
  apiConnector: connector
};

const driver = new SearchDriver(config);

driver.subscribeToStateChanges((state) =>
  console.log(`Received ${state.totalResults} results for your search!`)
);

driver.getActions().setSearchTerm("canyon");

// Received 8 results for your search!

Configuration

All configuration is documented in the Configuration section of the Advanced README.

SearchDriver Usage

Methods

method params return description
subscribeToStateChanges function Function to execute when state changes. ex.

(state) => {}
getActions Actions All available actions.
getState State Current state.

Current Tags

  • 1.11.0-canary.0                                ...           canary (3 years ago)
  • 1.21.5                                ...           latest (5 months ago)
  • 1.10.0-rc.1                                ...           next (3 years ago)

97 Versions

  • 1.21.5                                ...           5 months ago
  • 1.21.4                                ...           6 months ago
  • 1.21.3                                ...           6 months ago
  • 1.21.2                                ...           7 months ago
  • 1.21.1                                ...           8 months ago
  • 1.21.0                                ...           8 months ago
  • 1.20.2                                ...           2 years ago
  • 1.20.1                                ...           2 years ago
  • 1.20.0                                ...           2 years ago
  • 1.19.1                                ...           2 years ago
  • 1.19.0                                ...           2 years ago
  • 1.18.3                                ...           2 years ago
  • 1.18.2                                ...           2 years ago
  • 1.8.2                                ...           2 years ago
  • 1.18.1                                ...           2 years ago
  • 1.18.0                                ...           2 years ago
  • 1.17.1                                ...           2 years ago
  • 1.17.0                                ...           2 years ago
  • 1.16.0                                ...           2 years ago
  • 1.15.0                                ...           2 years ago
  • 1.14.0                                ...           2 years ago
  • 1.13.0                                ...           2 years ago
  • 1.12.1                                ...           2 years ago
  • 1.12.0                                ...           2 years ago
  • 1.11.3                                ...           3 years ago
  • 1.11.2                                ...           3 years ago
  • 1.11.1                                ...           3 years ago
  • 1.11.0                                ...           3 years ago
  • 1.11.0-canary.0                                ...           3 years ago
  • 1.10.2                                ...           3 years ago
  • 1.10.1                                ...           3 years ago
  • 1.10.0                                ...           3 years ago
  • 1.10.0-rc.1                                ...           3 years ago
  • 1.10.0-rc.0                                ...           3 years ago
  • 1.9.0                                ...           3 years ago
  • 1.8.0                                ...           3 years ago
  • 1.8.0-rc.0                                ...           3 years ago
  • 1.8.0-canary.1                                ...           3 years ago
  • 1.7.0                                ...           3 years ago
  • 1.6.1                                ...           3 years ago
  • 1.6.0                                ...           3 years ago
  • 1.5.1                                ...           4 years ago
  • 1.5.1-rc.0                                ...           4 years ago
  • 1.5.0                                ...           4 years ago
  • 1.5.0-rc.3                                ...           4 years ago
  • 1.5.0-rc.0                                ...           4 years ago
  • 1.4.1                                ...           4 years ago
  • 1.4.1-rc.0                                ...           4 years ago
  • 1.4.0                                ...           4 years ago
  • 1.4.0-rc.4                                ...           4 years ago
  • 1.4.0-rc.3                                ...           5 years ago
  • 1.3.3                                ...           5 years ago
  • 1.4.0-rc.0                                ...           5 years ago
  • 1.4.0-canary.6                                ...           5 years ago
  • 1.4.0-canary.5                                ...           5 years ago
  • 1.3.3-minor.8                                ...           5 years ago
  • 1.3.3-minor.3                                ...           5 years ago
  • 1.3.3-minor.2                                ...           5 years ago
  • 1.3.3-minor.1                                ...           5 years ago
  • 1.3.3-canary.1                                ...           5 years ago
  • 1.3.3-canary.0                                ...           5 years ago
  • 1.3.2                                ...           5 years ago
  • 1.3.1                                ...           5 years ago
  • 1.3.0                                ...           5 years ago
  • 1.3.0-canary.11                                ...           5 years ago
  • 1.2.0                                ...           5 years ago
  • 1.2.0-rc.0                                ...           5 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.1-canary1.22                                ...           5 years ago
  • 1.0.1-canary.22                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
  • 1.0.0-rc.2                                ...           5 years ago
  • 1.0.0-rc.1                                ...           5 years ago
  • 1.0.0-canary.3                                ...           5 years ago
  • 1.0.0-alpha.1                                ...           5 years ago
  • 1.0.0-rc.0                                ...           5 years ago
  • 0.12.1                                ...           5 years ago
  • 0.12.0                                ...           5 years ago
  • 0.11.0                                ...           5 years ago
  • 0.10.0                                ...           5 years ago
  • 0.9.2-alpha.6                                ...           5 years ago
  • 0.9.3                                ...           5 years ago
  • 0.9.2                                ...           5 years ago
  • 0.9.1                                ...           5 years ago
  • 0.9.0                                ...           5 years ago
  • 0.8.0                                ...           6 years ago
  • 0.7.0                                ...           6 years ago
  • 0.6.0                                ...           6 years ago
  • 0.5.3                                ...           6 years ago
  • 0.5.2                                ...           6 years ago
  • 0.5.1                                ...           6 years ago
  • 0.5.0                                ...           6 years ago
  • 0.4.0                                ...           6 years ago
  • 0.3.0                                ...           6 years ago
  • 0.2.1                                ...           6 years ago
  • 0.2.0                                ...           6 years ago
  • 0.1.0                                ...           6 years ago

© 2010 - cnpmjs.org x YWFE | Home | YWFE