Socket
Socket
Sign inDemoInstall

auto-advanced-search

Package Overview
Dependencies
1
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    auto-advanced-search

auto-advanced-search is a module to work queries in mysql match-against mode in boolean mode.


Version published
Maintainers
1
Install size
166 kB
Created

Readme

Source

Test Status

Auto-advanced-search is a module to prepare strings to perform match against in boolean mode modifier in mysql, that handles relevences of the required words for the query.

Installation:

npm i --save auto-advanced-search

Example:

// Require dependencies
var aas = require( 'auto-advanced-search' );

// Do the filtering
var string = 'something that i want to find',

// Call function with the required query
var query = aas( string );

// Returned result
	// query - returns '+something +that +want +find*'

Explanation:

The first string is always returned because, in this way, while the user is typing the word is going to appear some results. The next words will be filtered if it have three characters or less because in most cases this words doesn't have much relevance in the searching. In the last word have a "", like the sql wildcard "%", for the next characters match. The response will return the string with a plus "+" and in the last word have a "", like the sql "LIKE" wildcard "%", ex.'+string*' or '+first +second*' for the in boolean mode modifier assigns the relevance to the query.

Find with hit, and give their relevance with auto-advanced-search for better searches!

Keywords

FAQs

Last updated on 12 May 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc