1.3.23 • Published 1 year ago
v-lunr v1.3.23
v-lunr
A import for vue.js of elasticlunr
Install
yarn add v-lunr
Usage
<template>
<v-lunr log :input="allItems" :search="searchText">
<template v-slot="{item}">
<input type="checkbox"> {{ item.name }}
</template>
</v-lunr>
</template>
<script>
import vLunr from "v-lunr"
export default {
components: {
vLunr,
},
data(){
return {
allItems: [
{name:'A 0', tags:'main'},
{name:'B 1', tags:''},
{name:'C 2', tags:'main'},
{name:'D 3', tags:'recent'},
{name:'E 4', tags:'main recent'},
{name:'F 5', tags:'recent current'},
{name:'G 6', tags:'main recent current'},
],
}
},
}
</script>
Props:
log
Boolean
- log to console
deep
Boolean
- Searches within objects
input
Array
of Object
- to search. First one is the template for fields
search
String
- that you are searching for
stopWords
Boolean
- Search little word
TODO
fields, weights
1.3.23
1 year ago
1.3.13
2 years ago
1.3.14
2 years ago
1.3.17
2 years ago
1.3.18
2 years ago
1.3.15
2 years ago
1.3.16
2 years ago
1.3.20
2 years ago
1.3.21
2 years ago
1.3.22
2 years ago
1.3.12
2 years ago
1.3.10
3 years ago
1.3.7
3 years ago
1.3.5
3 years ago
1.3.4
3 years ago
1.3.9
3 years ago
1.3.8
3 years ago
1.3.3
3 years ago
1.3.2
3 years ago
1.3.1
3 years ago
1.3.0
3 years ago
1.2.0
3 years ago
1.2.1
3 years ago
1.1.12
3 years ago
1.1.11
4 years ago
1.1.10
4 years ago
1.1.9
4 years ago
1.1.7
4 years ago
1.1.6
4 years ago
1.1.5
4 years ago
1.1.4
4 years ago
1.1.3
4 years ago
1.1.2
4 years ago
1.1.1
4 years ago
1.1.0
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago