File tree Expand file tree Collapse file tree 5 files changed +68
-10
lines changed Expand file tree Collapse file tree 5 files changed +68
-10
lines changed Original file line number Diff line number Diff line change
1
+ # This file is for unifying the coding style for different editors and IDEs
2
+ # editorconfig.org
3
+
4
+ root = true
5
+
6
+ [* ]
7
+ end_of_line = lf
8
+ charset = utf-8
9
+ trim_trailing_whitespace = true
10
+ insert_final_newline = true
11
+
12
+ [** .py ]
13
+ indent_style = space
14
+ indent_size = 4
15
+
16
+ [** .html ]
17
+ indent_style = space
18
+ indent_size = 4
Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ _Will be generalized soon for all documentations_
8
8
9
9
This project supports Python 3.6+.
10
10
11
+ Set both environment variables ` APPLICATION_ID ` and ` API_KEY ` .
12
+
13
+ Then, run:
11
14
``` bash
12
15
$ pipenv install
13
16
$ pipenv shell
Original file line number Diff line number Diff line change 6
6
"stop_urls" : [],
7
7
"selectors" : {
8
8
"lvl0" : {
9
- "selector" : " .sidebar-heading" ,
10
- "global" : false ,
9
+ "selector" : " .sidebar-heading.open " ,
10
+ "global" : true ,
11
11
"default_value" : " Documentation"
12
12
},
13
13
"lvl1" : " .theme-default-content h1" ,
31
31
" lang"
32
32
]
33
33
},
34
- "conversation_id" : [
35
- " 1067906698"
36
- ],
37
34
"scrap_start_urls" : true ,
38
- "nb_hits" : 998
35
+ "nb_hits" : 920
39
36
}
Original file line number Diff line number Diff line change
1
+ {
2
+ "index_name" : " 9tz3lqoi" ,
3
+ "start_urls" : [
4
+ " https://docs.meilisearch.com"
5
+ ],
6
+ "stop_urls" : [],
7
+ "selectors" : {
8
+ "lvl0" : {
9
+ "selector" : " p.sidebar-heading.open" ,
10
+ "global" : true ,
11
+ "default_value" : " Documentation"
12
+ },
13
+ "lvl1" : " .theme-default-content h1" ,
14
+ "lvl2" : " .theme-default-content h2" ,
15
+ "lvl3" : " .theme-default-content h3" ,
16
+ "lvl4" : " .theme-default-content h4" ,
17
+ "lvl5" : " .theme-default-content h5" ,
18
+ "text" : " .theme-default-content p, .theme-default-content li" ,
19
+ "lang" : {
20
+ "selector" : " /html/@lang" ,
21
+ "type" : " xpath" ,
22
+ "global" : true ,
23
+ "default_value" : " en-US"
24
+ }
25
+ },
26
+ "selectors_exclude" : [
27
+ " .table-of-contents"
28
+ ],
29
+ "strip_chars" : " .,;:#" ,
30
+ "custom_settings" : {
31
+ "attributesForFaceting" : [
32
+ " lang"
33
+ ]
34
+ },
35
+ "conversation_id" : [
36
+ " 1067906698"
37
+ ],
38
+ "scrap_start_urls" : false ,
39
+ "nb_hits" : 898
40
+ }
Original file line number Diff line number Diff line change @@ -45,10 +45,10 @@ class MeiliSearchHelper:
45
45
# Go to the end of this file to understand criteria order
46
46
SETTINGS = {
47
47
"rankingOrder" : [
48
- "_number_of_words " ,
49
- "_sum_of_typos " ,
50
- "_sum_of_words_attribute " ,
51
- "_word_proximity " ,
48
+ "_words " ,
49
+ "_typo " ,
50
+ "_attribute " ,
51
+ "_proximity " ,
52
52
"_exact" ,
53
53
"page_rank" ,
54
54
"level" ,
You can’t perform that action at this time.
0 commit comments