We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fe11fa commit 056dc73Copy full SHA for 056dc73
src/views/PopularRepositories.vue
@@ -11,16 +11,13 @@
11
</template>
12
13
<script>
14
+import Searcher from "./../util/searcher";
15
import { mapGetters } from "vuex";
-import * as JsSearch from "js-search";
16
import sortBy from "lodash/sortBy";
17
import Repositories from "@/components/RepositoryCard";
18
import InputSearch from "@/components/InputSearch";
19
-const searcher = new JsSearch.Search("position");
20
-searcher.indexStrategy = new JsSearch.AllSubstringsIndexStrategy();
21
-searcher.searchIndex = new JsSearch.UnorderedSearchIndex();
22
-searcher.addIndex("name");
23
-searcher.addIndex("description");
+
+const searcher = new Searcher("position").addIndex("name").addIndex("description");
24
25
export default {
26
name: "PopularRepositories",
0 commit comments