Comments (2)
There is no way to limit the search results themselves, but you should be able to provide a custom slot which renders nothing when index > 4
. See the slot definition here for all scope props: https://github.com/nuxt-community/lunr-module/blob/master/lib/search.vue#L44
from lunr-module.
I tried like this but didn't work very good for me because the li was still appearing.
But the css hack works pretty good :)
from lunr-module.
Related Issues (13)
- how to use w/ dynamic routes HOT 1
- how do I get multiple results in the vue template HOT 1
- bug: public path - how to handle subdomain subdirectories HOT 2
- how to access `searchText ` from lib/search.vue to the <lunr-search> component HOT 1
- How to access to searchIndex?
- Dependency Dashboard
- add types
- Adding database support
- Action Required: Fix Renovate Configuration
- How to configure the search to have already some results if no full word has typed. HOT 6
- Where `nuxt.callHook` should be called on? HOT 5
- options.placeholderText does not work HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lunr-module.