elasticlunr.js | Based on lunr.js | Search Engine library

 by   weixsong JavaScript Version: v0.9.6 License: MIT

kandi X-RAY | elasticlunr.js Summary

kandi X-RAY | elasticlunr.js Summary

elasticlunr.js is a JavaScript library typically used in Manufacturing, Utilities, Machinery, Process, Database, Search Engine applications. elasticlunr.js has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can install using 'npm i elasticlunr-dev' or download it from GitHub, npm.

Elasticlunr.js is developed based on Lunr.js, but more flexible than lunr.js. Elasticlunr.js provides Query-Time Boosting, Field Search, more rational scoring/ranking methodology, flexible configuration and so on. A bit like Solr, but much smaller and not as bright, but also provide flexible configuration, query-time boosting, field search, etc.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              elasticlunr.js has a medium active ecosystem.
              It has 1925 star(s) with 147 fork(s). There are 32 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 59 open issues and 44 have been closed. On average issues are closed in 97 days. There are 17 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of elasticlunr.js is v0.9.6

            kandi-Quality Quality

              elasticlunr.js has 0 bugs and 0 code smells.

            kandi-Security Security

              elasticlunr.js has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              elasticlunr.js code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              elasticlunr.js is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              elasticlunr.js releases are not available. You will need to build from source code and install.
              Deployable package is available in npm.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed elasticlunr.js and discovered the below as its top functions. This is intended to give you an instant insight into elasticlunr.js implemented functionality, and help decide if they suit your requirements.
            • Computes the Levenshtein distance between two strings .
            • Clones an object
            Get all kandi verified functions for this library.

            elasticlunr.js Key Features

            No Key Features are available at this moment for elasticlunr.js.

            elasticlunr.js Examples and Code Snippets

            No Code Snippets are available at this moment for elasticlunr.js.

            Community Discussions

            Trending Discussions on elasticlunr.js

            QUESTION

            How to implement fulltext search for offline website
            Asked 2020-Dec-26 at 14:13

            I need a client-side fulltext search for big offline website. The site is opened by browser. I've made a research and found some solutions - fullproof, fuse.js, flexsearch.js, elasticlunr.js. I searched for js libs, because as i inderstand, it's the single solution (please correct me if i'm wrong).

            Also i can't clearly understand some moments:

            1. As i know, browsers due to security policy block all scripts' execution from javascripts files. I couldn't run examples from fullproof git because of this problem, but i managed to run flexsearch example, because script execution was included in html code with tag. Can i implement some search system for my local website because i don't use any local server for hosting (like xampp)?
            2. From documentation for different js libs i undestand, that all they use for indexing either variable with list of key words or json file. Maybe i have a luck of information, but how i can use search system to find words/expressions from the whole website (it has a main page and a lot of included pages with information)? Do i have to create some sort of database or some json file?

            I'll be very grateful for your answers, explanations, solutions or maybe examples about this problem, thank you!

            ...

            ANSWER

            Answered 2020-Dec-26 at 14:13

            Firts of all, browsers doesn't block js scripts execution. Secondly, i managed to find two ways to solve my problem - keywords search and fulltext search: 1) I created a database with keywords (json file) and used flexsearch library to search in this database. Example of usage u can find on their website, either an example of json file. 2) This time i created a database (json file), in which one recording is a text content of a website. Then again i used flexsearch to find a word in this database. After appropriate site was found, it opened up and the searched word was highlighted (u can find such js libraries in net). All the solutions don't require any internet connection and can be used for offline websites.

            Source https://stackoverflow.com/questions/63281063

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install elasticlunr.js

            Simply include the elasticlunr.js source file in the page that you want to use it. Elasticlunr.js is supported in all modern browsers. Browsers that do not support ES5 will require a JavaScript shim for Elasticlunr.js to work. You can either use Augment.js, ES5-Shim or any library that patches old browsers to provide an ES5 compatible JavaScript environment.
            When you first create a index instance, you need to specify which field you want to index. If you did not specify which field to index, then no field will be searchable for your documents. You could specify fields by:. You could also set the document reference by this.setRef('id'), if you did not set document ref, elasticlunr.js will use 'id' as default.

            Support

            This part only contain important aspects of elasticlunr.js, for the whole documentation, please go to API documentation.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/weixsong/elasticlunr.js.git

          • CLI

            gh repo clone weixsong/elasticlunr.js

          • sshUrl

            git@github.com:weixsong/elasticlunr.js.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link