arturom / search-analysis

A graphical user interface for the Elasticsearch Analyze API

Home Page:https://arturom.github.io/search-analysis/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Search analyzer

A graphical user interface for the Elasticsearch Analyze API

Try it out!

See the Elsasticsearch configuration section below for important setup information


Usage

This tool allows you to test an analyzer in 4 steps:

  1. Enter the URL of your Elasticsearch node
  2. Select an analyzer
  3. Enter your input text
  4. Click the "Analyze" button to view the generated terms

Other workflows

Analyze by Field

  1. Enter the URL of your Elasticsearch node
  2. Refresh the index list and select an index name
  3. Open the "By Field" tab
  4. Select a field in your index to use that field's analyzer
  5. Enter your input text
  6. Click the "Analyze" button to view the generated terms

Custom tokenizer/fiilters

  1. Enter the URL of your Elasticsearch node
  2. Open the "Custom" tab
  3. Select a tokenizer
  4. Select zero or more token filters
  5. Enter your input text
  6. Click the "Analyze" button to view the generated terms

Elasticsearch Configuration

This tool needs to have http access to an Elasticsearch node. Elasticsearch security configuration needs to be relaxed to allow cross-domain requests and to allow non-https requests.

Below are the most-permisive elasticsearch.yaml settings. Do not use these values in a production cluster.

Disabling ssl might not be necessary if you don't intend to clone, build, and host this repo locally.

xpack.security.http.ssl:
  enabled: false

http.host: 0.0.0.0
http.cors.enabled: true
http.cors.allow-origin: '*'

Development

The app was initialized with Create React App.

It is deployed to Github Pages using the gh-pages package.

Roadmap

The custom tab needs the following improvements:

  • Add all tokenizers
  • Allow tokenizer parameter input
  • Add all token filters
  • Allow filter parameter input
  • Allow filters to be inserted in any order
  • Auto-genarate the forms for tokenizer params and filter params from the Elasticsearch specification

About

A graphical user interface for the Elasticsearch Analyze API

https://arturom.github.io/search-analysis/

License:Mozilla Public License 2.0


Languages

Language:JavaScript 88.0%Language:HTML 9.5%Language:CSS 2.5%