nuxt-community / lunr-module Goto Github PK
View Code? Open in Web Editor NEWFull-text search with pre-build indexes for Nuxt.js using lunr.js
License: MIT License
Full-text search with pre-build indexes for Nuxt.js using lunr.js
License: MIT License
Hi!
Having issue to find some solution for nuxt with a search which will provide some answers without necessity to complete at least a word that matches with document body.
Is here a way to configure the lunr such way? So far I need to put at least a word to have some result.
The guide isn't stating where this code should sit on:
nuxt.callHook('lunr:document', ({ locale: 'af', // optional, default en document, meta // optional })
Can I call it on asyncData? Any Example? thanks
I need the ability to call searchIndex.Search
outside the search.vue
template. Maybe we need to make an Inject for global access to this variable?
const dynamicRoutes = getDynamicPaths(
{
blog: 'blog/.json',
projects: 'projects/.json' },
dynamicContentPath);
how do I parse these json files into the searchable index?
Hello does anyone know of a way to add database support like searching with Mysql, Postgres, Mongodb, etc?
<lunr-search>
<template v-slot:default="{ meta }">
<nuxt-link :to="meta.route">
</nuxt-link>
</template>
</lunr-search>
only gives me one result ever. I'm expecting 2 when I type 'test' into webpage
There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.
Error type: Cannot find preset's package (@nuxtjs)
Hi,
I get as many results as possible in the search results box,
Is there a way to only show the top 5?
I am currently doing it in CSS.
I'm looking for a way to add the searchText
entered by the user to the URL as a search query like
..url/search?q=mysearchterm
. But I'm unable to access the searchText
from the lib/search.vue folder. How to access this value?
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These problems occurred while renovating this repository. View logs.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
consola
, jsdom
, lunr-languages
, nuxt-i18n
, tib
).circleci/config.yml
package.json
consola ^2.15.0
lunr ^2.3.9
lunr-languages ^1.4.0
jsdom ^16.4.0
nuxt-i18n 6.15.4
tib ^0.7.4
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.