Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/llh1/DataSearch
Blazing fast full text search in Javascript
https://github.com/llh1/DataSearch
Last synced: 11 days ago
JSON representation
Blazing fast full text search in Javascript
- Host: GitHub
- URL: https://github.com/llh1/DataSearch
- Owner: llh1
- License: mit
- Archived: true
- Created: 2015-05-17T14:15:40.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-17T14:40:07.000Z (over 9 years ago)
- Last Synced: 2024-08-02T05:13:11.725Z (3 months ago)
- Language: JavaScript
- Size: 148 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-blazingly-fast - DataSearch - Blazing fast full text search in Javascript (JavaScript)
README
# DataSearch.js
Blazing fast full text search in Javascript[![Build Status](https://travis-ci.org/llh1/DataSearch.svg?branch=master)](https://travis-ci.org/llh1/DataSearch)
DataSearch.js is an attempt to use the power of regular expression to search across the keys of a Javascript hash.
## Quick Start
```javascript
var DataSearch = require('datasearch');var data = [
{name: {firstName: "Iron", lastName: "Man"}, country: "United States"},
{name: {firstName: "Sherlock", lastName: "Holmes"}, country: "United Kingdom"},
{name: {firstName: "Bruce", lastName: "Lee"}, country: "China"}
];var dataSearch = new DataSearch(data);
dataSearch.search("iron states"); // => {name: {firstName: "Iron", lastName: "Man"}, country: "United States"}
```