Skip to content

Simplifies an english search term to use it with an Elasticsearch completion index

License

Notifications You must be signed in to change notification settings

stevejay/es-simplify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

es-simplify

Simplifies an english search term to use it with an Elasticsearch completion index.

npm version Codeship Status for stevejay/es-simplify Coverage Status bitHound Overall Score bitHound Dependencies bitHound Dev Dependencies license

NPM

Install

$ npm install --save es-simplify

Usage

const simplify = require('es-simplify');

// simplify a term

const result = simplify(' Hi    Yóu   ');

// result is 'hi you'

See the unit tests for further examples.

API

simplify(term)

Returns a simplied version of the supplied string.

input

Type: string

The term you want to simplify.

License

MIT

About

Simplifies an english search term to use it with an Elasticsearch completion index

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published