{"name":"lunr","description":"Simple full-text search in your browser.","version":"0.3.0","author":{"name":"Oliver Nightingale"},"keywords":["search"],"homepage":"http://lunrjs.com","bugs":"http://github.com/olivernn/lunr.js/issues","main":"lunr.js","devDependencies":{"phantomjs":"1.8.1-3"},"scripts":{"test":"phantomjs test/env/runner.js http://localhost:3000/test","start":"node server.js"},"_id":"lunr@0.3.0","dist":{"shasum":"87e27cdf23de2ed19f49ff50a1034ccb411edfdb","tarball":"http://registry-npm.ywwl.com/lunr/download/lunr-0.3.0.tgz","integrity":"sha512-U9lkILrkCfFf4T7NV3N5qhT7O4WegjR+klquF4q109uMQAMdFOSpufbNHRmrp0ML9sbJdATjm67ns2GDtuRGvQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCsgvKI6wZpnFPfFvGwHifcDLlks1qCTLmrhpxdl65PUgIhAJikEUCaf1GH7SivSNEx+TBX01ABJkps98hHsyuyfu3G"}],"size":362102,"noattachment":false,"key":"/lunr/-/lunr-0.3.0.tgz"},"_from":".","_npmVersion":"1.2.11","_npmUser":{"name":"olivernn","email":"oliver.nightingale1@gmail.com"},"maintainers":[{"name":"olivernn","email":"oliver.nightingale1@gmail.com"}],"directories":{},"readme":"# Lunr.js\n\n[![Join the chat at https://gitter.im/olivernn/lunr.js](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/olivernn/lunr.js?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)\n\n[![Build Status](https://travis-ci.org/olivernn/lunr.js.svg?branch=master)](https://travis-ci.org/olivernn/lunr.js)\n\nA bit like Solr, but much smaller and not as bright.\n\n## Example\n\nA very simple search index can be created using the following:\n\n```javascript\nvar idx = lunr(function () {\n  this.field('title')\n  this.field('body')\n\n  this.add({\n    \"title\": \"Twelfth-Night\",\n    \"body\": \"If music be the food of love, play on: Give me excess of it…\",\n    \"author\": \"William Shakespeare\",\n    \"id\": \"1\"\n  })\n})\n```\n\nThen searching is as simple as:\n\n```javascript\nidx.search(\"love\")\n```\n\nThis returns a list of matching documents with a score of how closely they match the search query as well as any associated metadata about the match:\n\n```javascript\n[\n  {\n    \"ref\": \"1\",\n    \"score\": 0.3535533905932737,\n    \"matchData\": {\n      \"metadata\": {\n        \"love\": {\n          \"body\": {}\n        }\n      }\n    }\n  }\n]\n```\n\n[API documentation](https://lunrjs.com/docs/index.html) is available, as well as a [full working example](https://olivernn.github.io/moonwalkers/).\n\n## Description\n\nLunr.js is a small, full-text search library for use in the browser.  It indexes JSON documents and provides a simple search interface for retrieving documents that best match text queries.\n\n## Why\n\nFor web applications with all their data already sitting in the client, it makes sense to be able to search that data on the client too.  It saves adding extra, compacted services on the server.  A local search index will be quicker, there is no network overhead, and will remain available and usable even without a network connection.\n\n## Installation\n\nSimply include the lunr.js source file in the page that you want to use it.  Lunr.js is supported in all modern browsers.\n\nAlternatively an npm package is also available `npm install lunr`.\n\nBrowsers that do not support ES5 will require a JavaScript shim for Lunr to work. You can either use [Augment.js](https://github.com/olivernn/augment.js), [ES5-Shim](https://github.com/kriskowal/es5-shim) or any library that patches old browsers to provide an ES5 compatible JavaScript environment.\n\n## Features\n\n* Full text search support for 14 languages\n* Boost terms at query time or boost entire documents at index time\n* Scope searches to specific fields\n* Fuzzy term matching with wildcards or edit distance\n\n## Contributing\n\nSee the [`CONTRIBUTING.md` file](CONTRIBUTING.md).\n","publish_time":1364837552429,"_cnpm_publish_time":1364837552429,"dist-tags":{"alpha":"2.2.0-alpha.2","latest":"2.3.9"}}