Questions tagged [lunrjs]

Simple full-text search in your browser

lunr.js is a simple full text search engine for your client side applications. It is designed to be small, yet full featured, enabling you to provide a great search experience without the need for external, server side, search services.

lunr.js has no external dependencies, although it does require a modern browser with ES5 support. In older browsers you can use an ES5 shim, such as augment.js, to provide any missing JavaScript functionality.

https://lunrjs.com/

48 questions
0
votes
0 answers

Elasticlunr search

If I have a document with nested array, how can search nested array using elasticlunr? I get an empty array when search on city of Phoenix. Following is my code example. Thanks, const doc1 = { "id": 123, "firstName": "jon", …
Maharaj
  • 313
  • 2
  • 3
  • 14
0
votes
0 answers

Lunr -Term search is not deterministic

I have around 5k data in the following format. [ { "userName": "Genevieve_Borer", "emailId": "Josefina.Gislason@yahoo.com", "userId": 85226, "firstName": "Rodrick", "lastName": "Baumbach", "userType": "NATIVE", …
logesh
  • 99
  • 1
  • 2
  • 8
0
votes
1 answer

How can I improve my search function Logic? Using Lunr.js

So I am using Lunr.js for my search function. Everything is working nice and dandy BUT, when I search certain keywords like "God" and "church" I get unacceptably long search times. I mean like, 30 secs and even beyond 1 min long. I'm sure it must be…
0
votes
0 answers

Lunr index with data from gatsby-source-plugin

i'm trying to add an searchindex at buildtime in my gatsby + apollo project. I tried following following this article: using the standard lunr package https://css-tricks.com/how-to-add-lunr-search-to-your-gatsby-website/ I get stuck because in…
control-panel
  • 255
  • 6
  • 17
0
votes
0 answers

How can I load a JSON file with Lunr data in JQUERY?

I've made a JSON file with Lunr search data according to the instructions here. So it's a JSON file that's structured like {"documents":[{"body":".... And I can manage to run these commands fine in the console: var response =…
Jonathan
  • 10,571
  • 13
  • 67
  • 103
0
votes
1 answer

Can't get object out of array for display

I'm trying to build a simple search interface for a dataset that I have created. I have followed the Lunr guides to create an index. I put an input box on my webpage that gets the search value typed by the user, then runs that value against the…
oymonk
  • 427
  • 9
  • 27
0
votes
1 answer

Docfx Russian language search

How to make docfx to search in Russian language? It searches English words just fine, but not Russian words. I tried to debug it and can see that it uses lunr library for search. How can I replace standard lunr library with Russian lunr in docfx?
Access Denied
  • 8,723
  • 4
  • 42
  • 72
0
votes
1 answer

Searchable JS/Next.js site text extraction

I have a Next.js documentation site at https://logary.tech source, and would like to implement the document search, e.g. with Lunr. How do I program babel/webpack/nextjs to also extract text (perhaps as a pre-compilation step/babel plugin), into a…
Henrik
  • 9,714
  • 5
  • 53
  • 87
0
votes
1 answer

Searches for multiple terms lunrjs

According to official documentation of lunrjs: "Searches for multiple terms are also supported. If a document matches at least one of the search terms, it will show in the results. The search terms are combined with OR". Is there any way to…
0
votes
1 answer

Build an index in a Node app using Js Search

I want to create a Js Search index in a Node app, then use this index in a client-side JavaScript app. It's not clear to me from the README or the benchmark code how to do this. I've tried this: // docs is an array of objects, each with a name,…
Sam Dutton
  • 14,775
  • 6
  • 54
  • 64
0
votes
0 answers

Cannot get Lunr.js to work on Amazon S3 site built in Middleman. Works properly on local server

Problem: Lunr.js indexes and loads static site content JSON file, but does not work when deployed. It does work in development with LiveReload but does not when deployed. I've set the CORS options on AWS to allow all requests and it had no…
splatoperator
  • 227
  • 1
  • 2
  • 10
0
votes
1 answer

Lunr.js indexing?

I recently started a web project where I have to implement a search button for searching on my website, but client-side. So I found lunr.js. My problem is.. how do I index the pages? Yeah, I do know the drill written on their site.. though, it is…
user6613456
0
votes
1 answer

Javascript - Would 'lunr' be a viable search library for Firebase?

I'm trying to implement a search bar for my website that uses Firebase as its database. It's a bunch of links to certain images and embed videos. I'm thinking is it best to have a "tag" field for each link, that the lunr library would query for? I'd…
Homerdough
  • 353
  • 1
  • 3
  • 12
0
votes
1 answer

How to search js-data resources with Lunr on angular?

In my angular (1.3) app, I'm using JSData (2.0.0), and I'd like to add full text search capabilities to those resources using Lunr, without Ajax. Any tips?
Yossi Shasho
  • 3,632
  • 31
  • 47
0
votes
1 answer

Backgrid.filter precedence of filtering based on field name

I am new to backgrid.js and I am using filter as an extension function for my web app. I am quite confused about LunrFilter. As the code defines in this page, it has the parameter { field : 10 }. May I know what and how does field name and boost…
Vyx
  • 31
  • 3