1.3.23 • Published 2 years ago

v-lunr v1.3.23

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years ago

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

2 years ago

1.3.13

4 years ago

1.3.14

4 years ago

1.3.17

4 years ago

1.3.18

4 years ago

1.3.15

4 years ago

1.3.16

4 years ago

1.3.20

4 years ago

1.3.21

4 years ago

1.3.22

3 years ago

1.3.12

4 years ago

1.3.10

4 years ago

1.3.7

4 years ago

1.3.5

4 years ago

1.3.4

4 years ago

1.3.9

4 years ago

1.3.8

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.2.1

4 years ago

1.1.12

5 years ago

1.1.11

5 years ago

1.1.10

5 years ago

1.1.9

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago