@@ -10,52 +10,15 @@ new Crawler({
10
10
ignoreQueryParams : [ "source" , "utm_*" ] ,
11
11
actions : [
12
12
{
13
- indexName : "javashub_cn_9ju9ru2as7_articles " ,
13
+ indexName : "javashub " ,
14
14
pathsToMatch : [ "https://javashub.cn/**" , "https://www.javashub.cn/**" ] ,
15
15
recordExtractor : ( { url, $, helpers } ) => {
16
16
return helpers . article ( { $, url } ) ;
17
17
} ,
18
18
} ,
19
- {
20
- indexName : "javashub_cn_9ju9ru2as7_products" ,
21
- pathsToMatch : [ "https://javashub.cn/**" , "https://www.javashub.cn/**" ] ,
22
- recordExtractor : ( { url, $, helpers } ) => {
23
- return helpers . product ( { $, url } ) ;
24
- } ,
25
- } ,
26
- {
27
- indexName : "javashub_cn_9ju9ru2as7_pages" ,
28
- pathsToMatch : [ "https://javashub.cn/**" , "https://www.javashub.cn/**" ] ,
29
- recordExtractor : ( { url, $, helpers, contentLength, fileType } ) => {
30
- return helpers . page ( { $, url, contentLength, fileType } ) ;
31
- } ,
32
- } ,
33
19
] ,
34
20
initialIndexSettings : {
35
- javashub_cn_9ju9ru2as7_articles : {
36
- distinct : true ,
37
- attributeForDistinct : "url" ,
38
- searchableAttributes : [
39
- "unordered(keywords)" ,
40
- "unordered(title)" ,
41
- "unordered(description)" ,
42
- "url" ,
43
- ] ,
44
- customRanking : [ "asc(depth)" ] ,
45
- attributesForFaceting : [ "category" ] ,
46
- } ,
47
- javashub_cn_9ju9ru2as7_products : {
48
- distinct : true ,
49
- attributeForDistinct : "url" ,
50
- searchableAttributes : [
51
- "unordered(name)" ,
52
- "unordered(description)" ,
53
- "url" ,
54
- ] ,
55
- customRanking : [ "asc(depth)" ] ,
56
- attributesForFaceting : [ "category" ] ,
57
- } ,
58
- javashub_cn_9ju9ru2as7_pages : {
21
+ javashub : {
59
22
distinct : true ,
60
23
attributeForDistinct : "url" ,
61
24
searchableAttributes : [
0 commit comments