4 |
5 |
6 |
--------------------------------------------------------------------------------
/multi-module/multi-module-web/target/classes/config.properties:
--------------------------------------------------------------------------------
1 | url:jdbc:mysql://localhost:3306/demo?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8
2 | driverClassName:com.mysql.jdbc.Driver
3 | jdbc_username:root
4 | jdbc_password:root
5 |
6 | filters:stat
7 |
8 | maxActive:20
9 | initialSize:1
10 | maxWait:60000
11 | minIdle:10
12 | maxIdle:15
13 |
14 | timeBetweenEvictionRunsMillis:60000
15 | minEvictableIdleTimeMillis:300000
16 |
17 | validationQuery:SELECT 'x'
18 | testWhileIdle:true
19 | testOnBorrow:false
20 | testOnReturn:false
21 |
22 | maxOpenPreparedStatements:20
23 | removeAbandoned:true
24 | removeAbandonedTimeout:1800
25 | logAbandoned:true
26 |
--------------------------------------------------------------------------------
/multi-module/multi-module-web/target/classes/log4j.properties:
--------------------------------------------------------------------------------
1 | log4j.rootLogger=info,console,file
2 |
3 | log4j.appender.console=org.apache.log4j.ConsoleAppender
4 | log4j.appender.console.layout=org.apache.log4j.PatternLayout
5 | log4j.appender.console.layout.ConversionPattern=[%-d{HH:mm:ss}][%p][%c]- %m %n
6 |
7 | log4j.appender.file=org.apache.log4j.DailyRollingFileAppender
8 | log4j.appender.file.DatePattern='-'yyyy-MM-dd
9 | log4j.appender.file.File=./logs/web.log
10 | log4j.appender.file.Append=true
11 | log4j.appender.file.layout=org.apache.log4j.PatternLayout
12 | log4j.appender.file.layout.ConversionPattern=[%-d{HH:mm:ss}][%p][%c]- %m %n
--------------------------------------------------------------------------------
/multi-module/multi-module-web/target/classes/spring/spring-mvc.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/multi-module/multi-module-web/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Built-By: Administrator
3 | Build-Jdk: 1.8.0_73
4 | Created-By: Maven Integration for Eclipse
5 |
6 |
--------------------------------------------------------------------------------
/multi-module/multi-module-web/target/m2e-wtp/web-resources/META-INF/maven/cn.edu.hdu.mm/multi-module-web/pom.properties:
--------------------------------------------------------------------------------
1 | #Generated by Maven Integration for Eclipse
2 | #Sat Oct 22 12:56:58 CST 2016
3 | version=0.0.1-SNAPSHOT
4 | groupId=cn.edu.hdu.mm
5 | m2e.projectName=multi-module-web
6 | m2e.projectLocation=D\:\\ProgramFiles_dev\\eclipse\\workspace\\multi-module\\multi-module-web
7 | artifactId=multi-module-web
8 |
--------------------------------------------------------------------------------
/multi-module/readme.md:
--------------------------------------------------------------------------------
1 | maven工程模块化例子
2 | http://www.cnblogs.com/chenpi/p/5987332.html
3 |
--------------------------------------------------------------------------------
/solr-in-tomcat/lib.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peterchenhdu/demos/23ad2c9cf8e3efc35cd04cc32e7c079cbbb934f9/solr-in-tomcat/lib.png
--------------------------------------------------------------------------------
/solr-in-tomcat/log4j.properties:
--------------------------------------------------------------------------------
1 | # Logging level
2 | solr.log=logs
3 | log4j.rootLogger=INFO, file, CONSOLE
4 |
5 | log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
6 |
7 | log4j.appender.CONSOLE.layout=org.apache.log4j.EnhancedPatternLayout
8 | log4j.appender.CONSOLE.layout.ConversionPattern=%-4r %-5p (%t) [%X{collection} %X{shard} %X{replica} %X{core}] %c{1.} %m%n
9 |
10 | #- size rotation with log cleanup.
11 | log4j.appender.file=org.apache.log4j.RollingFileAppender
12 | log4j.appender.file.MaxFileSize=4MB
13 | log4j.appender.file.MaxBackupIndex=9
14 |
15 | #- File to log to and log format
16 | log4j.appender.file.File=${solr.log}/solr.log
17 | log4j.appender.file.layout=org.apache.log4j.EnhancedPatternLayout
18 | log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p (%t) [%X{collection} %X{shard} %X{replica} %X{core}] %c{1.} %m%n
19 |
20 | log4j.logger.org.apache.zookeeper=WARN
21 | log4j.logger.org.apache.hadoop=WARN
22 |
23 | # set to INFO to enable infostream log messages
24 | log4j.logger.org.apache.solr.update.LoggingInfoStream=OFF
25 |
--------------------------------------------------------------------------------
/solr-in-tomcat/readme.md:
--------------------------------------------------------------------------------
1 | 4、在Linux环境下,将Solr部署到tomcat7中,导入Mysql数据库数据, 定时更新索引
2 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solr-dataimportscheduler-1.1.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/peterchenhdu/demos/23ad2c9cf8e3efc35cd04cc32e7c079cbbb934f9/solr-in-tomcat/solr-dataimportscheduler-1.1.1.jar
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/basic_configs/conf/_rest_managed.json:
--------------------------------------------------------------------------------
1 | {"initArgs":{},"managedList":[]}
2 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/basic_configs/conf/protwords.txt:
--------------------------------------------------------------------------------
1 | # The ASF licenses this file to You under the Apache License, Version 2.0
2 | # (the "License"); you may not use this file except in compliance with
3 | # the License. You may obtain a copy of the License at
4 | #
5 | # http://www.apache.org/licenses/LICENSE-2.0
6 | #
7 | # Unless required by applicable law or agreed to in writing, software
8 | # distributed under the License is distributed on an "AS IS" BASIS,
9 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 | # See the License for the specific language governing permissions and
11 | # limitations under the License.
12 |
13 | #-----------------------------------------------------------------------
14 | # Use a protected word file to protect against the stemmer reducing two
15 | # unrelated words to the same base word.
16 |
17 | # Some non-words that normally won't be encountered,
18 | # just to test that they won't be stemmed.
19 | dontstems
20 | zwhacky
21 |
22 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/basic_configs/conf/stopwords.txt:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/basic_configs/conf/synonyms.txt:
--------------------------------------------------------------------------------
1 | # The ASF licenses this file to You under the Apache License, Version 2.0
2 | # (the "License"); you may not use this file except in compliance with
3 | # the License. You may obtain a copy of the License at
4 | #
5 | # http://www.apache.org/licenses/LICENSE-2.0
6 | #
7 | # Unless required by applicable law or agreed to in writing, software
8 | # distributed under the License is distributed on an "AS IS" BASIS,
9 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 | # See the License for the specific language governing permissions and
11 | # limitations under the License.
12 |
13 | #-----------------------------------------------------------------------
14 | #some test synonym mappings unlikely to appear in real input text
15 | aaafoo => aaabar
16 | bbbfoo => bbbfoo bbbbar
17 | cccfoo => cccbar cccbaz
18 | fooaaa,baraaa,bazaaa
19 |
20 | # Some synonym groups specific to this example
21 | GB,gib,gigabyte,gigabytes
22 | MB,mib,megabyte,megabytes
23 | Television, Televisions, TV, TVs
24 | #notice we use "gib" instead of "GiB" so any WordDelimiterFilter coming
25 | #after us won't split it into two words.
26 |
27 | # Synonym mappings can be used for spelling correction too
28 | pixima => pixma
29 |
30 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/data_driven_schema_configs/conf/lang/contractions_ca.txt:
--------------------------------------------------------------------------------
1 | # Set of Catalan contractions for ElisionFilter
2 | # TODO: load this as a resource from the analyzer and sync it in build.xml
3 | d
4 | l
5 | m
6 | n
7 | s
8 | t
9 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/data_driven_schema_configs/conf/lang/contractions_fr.txt:
--------------------------------------------------------------------------------
1 | # Set of French contractions for ElisionFilter
2 | # TODO: load this as a resource from the analyzer and sync it in build.xml
3 | l
4 | m
5 | t
6 | qu
7 | n
8 | s
9 | j
10 | d
11 | c
12 | jusqu
13 | quoiqu
14 | lorsqu
15 | puisqu
16 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/data_driven_schema_configs/conf/lang/contractions_ga.txt:
--------------------------------------------------------------------------------
1 | # Set of Irish contractions for ElisionFilter
2 | # TODO: load this as a resource from the analyzer and sync it in build.xml
3 | d
4 | m
5 | b
6 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/data_driven_schema_configs/conf/lang/contractions_it.txt:
--------------------------------------------------------------------------------
1 | # Set of Italian contractions for ElisionFilter
2 | # TODO: load this as a resource from the analyzer and sync it in build.xml
3 | c
4 | l
5 | all
6 | dall
7 | dell
8 | nell
9 | sull
10 | coll
11 | pell
12 | gl
13 | agl
14 | dagl
15 | degl
16 | negl
17 | sugl
18 | un
19 | m
20 | t
21 | s
22 | v
23 | d
24 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/data_driven_schema_configs/conf/lang/hyphenations_ga.txt:
--------------------------------------------------------------------------------
1 | # Set of Irish hyphenations for StopFilter
2 | # TODO: load this as a resource from the analyzer and sync it in build.xml
3 | h
4 | n
5 | t
6 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/data_driven_schema_configs/conf/lang/stemdict_nl.txt:
--------------------------------------------------------------------------------
1 | # Set of overrides for the dutch stemmer
2 | # TODO: load this as a resource from the analyzer and sync it in build.xml
3 | fiets fiets
4 | bromfiets bromfiets
5 | ei eier
6 | kind kinder
7 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/data_driven_schema_configs/conf/lang/stopwords_el.txt:
--------------------------------------------------------------------------------
1 | # Lucene Greek Stopwords list
2 | # Note: by default this file is used after GreekLowerCaseFilter,
3 | # so when modifying this file use 'σ' instead of 'ς'
4 | ο
5 | η
6 | το
7 | οι
8 | τα
9 | του
10 | τησ
11 | των
12 | τον
13 | την
14 | και
15 | κι
16 | κ
17 | ειμαι
18 | εισαι
19 | ειναι
20 | ειμαστε
21 | ειστε
22 | στο
23 | στον
24 | στη
25 | στην
26 | μα
27 | αλλα
28 | απο
29 | για
30 | προσ
31 | με
32 | σε
33 | ωσ
34 | παρα
35 | αντι
36 | κατα
37 | μετα
38 | θα
39 | να
40 | δε
41 | δεν
42 | μη
43 | μην
44 | επι
45 | ενω
46 | εαν
47 | αν
48 | τοτε
49 | που
50 | πωσ
51 | ποιοσ
52 | ποια
53 | ποιο
54 | ποιοι
55 | ποιεσ
56 | ποιων
57 | ποιουσ
58 | αυτοσ
59 | αυτη
60 | αυτο
61 | αυτοι
62 | αυτων
63 | αυτουσ
64 | αυτεσ
65 | αυτα
66 | εκεινοσ
67 | εκεινη
68 | εκεινο
69 | εκεινοι
70 | εκεινεσ
71 | εκεινα
72 | εκεινων
73 | εκεινουσ
74 | οπωσ
75 | ομωσ
76 | ισωσ
77 | οσο
78 | οτι
79 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/data_driven_schema_configs/conf/lang/stopwords_ga.txt:
--------------------------------------------------------------------------------
1 |
2 | a
3 | ach
4 | ag
5 | agus
6 | an
7 | aon
8 | ar
9 | arna
10 | as
11 | b'
12 | ba
13 | beirt
14 | bhúr
15 | caoga
16 | ceathair
17 | ceathrar
18 | chomh
19 | chtó
20 | chuig
21 | chun
22 | cois
23 | céad
24 | cúig
25 | cúigear
26 | d'
27 | daichead
28 | dar
29 | de
30 | deich
31 | deichniúr
32 | den
33 | dhá
34 | do
35 | don
36 | dtí
37 | dá
38 | dár
39 | dó
40 | faoi
41 | faoin
42 | faoina
43 | faoinár
44 | fara
45 | fiche
46 | gach
47 | gan
48 | go
49 | gur
50 | haon
51 | hocht
52 | i
53 | iad
54 | idir
55 | in
56 | ina
57 | ins
58 | inár
59 | is
60 | le
61 | leis
62 | lena
63 | lenár
64 | m'
65 | mar
66 | mo
67 | mé
68 | na
69 | nach
70 | naoi
71 | naonúr
72 | ná
73 | ní
74 | níor
75 | nó
76 | nócha
77 | ocht
78 | ochtar
79 | os
80 | roimh
81 | sa
82 | seacht
83 | seachtar
84 | seachtó
85 | seasca
86 | seisear
87 | siad
88 | sibh
89 | sinn
90 | sna
91 | sé
92 | sí
93 | tar
94 | thar
95 | thú
96 | triúr
97 | trí
98 | trína
99 | trínár
100 | tríocha
101 | tú
102 | um
103 | ár
104 | é
105 | éis
106 | í
107 | ó
108 | ón
109 | óna
110 | ónár
111 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/data_driven_schema_configs/conf/lang/stopwords_hy.txt:
--------------------------------------------------------------------------------
1 | # example set of Armenian stopwords.
2 | այդ
3 | այլ
4 | այն
5 | այս
6 | դու
7 | դուք
8 | եմ
9 | են
10 | ենք
11 | ես
12 | եք
13 | է
14 | էի
15 | էին
16 | էինք
17 | էիր
18 | էիք
19 | էր
20 | ըստ
21 | թ
22 | ի
23 | ին
24 | իսկ
25 | իր
26 | կամ
27 | համար
28 | հետ
29 | հետո
30 | մենք
31 | մեջ
32 | մի
33 | ն
34 | նա
35 | նաև
36 | նրա
37 | նրանք
38 | որ
39 | որը
40 | որոնք
41 | որպես
42 | ու
43 | ում
44 | պիտի
45 | վրա
46 | և
47 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/data_driven_schema_configs/conf/lang/userdict_ja.txt:
--------------------------------------------------------------------------------
1 | #
2 | # This is a sample user dictionary for Kuromoji (JapaneseTokenizer)
3 | #
4 | # Add entries to this file in order to override the statistical model in terms
5 | # of segmentation, readings and part-of-speech tags. Notice that entries do
6 | # not have weights since they are always used when found. This is by-design
7 | # in order to maximize ease-of-use.
8 | #
9 | # Entries are defined using the following CSV format:
10 | # , ... , ... ,
11 | #
12 | # Notice that a single half-width space separates tokens and readings, and
13 | # that the number tokens and readings must match exactly.
14 | #
15 | # Also notice that multiple entries with the same is undefined.
16 | #
17 | # Whitespace only lines are ignored. Comments are not allowed on entry lines.
18 | #
19 |
20 | # Custom segmentation for kanji compounds
21 | 日本経済新聞,日本 経済 新聞,ニホン ケイザイ シンブン,カスタム名詞
22 | 関西国際空港,関西 国際 空港,カンサイ コクサイ クウコウ,カスタム名詞
23 |
24 | # Custom segmentation for compound katakana
25 | トートバッグ,トート バッグ,トート バッグ,かずカナ名詞
26 | ショルダーバッグ,ショルダー バッグ,ショルダー バッグ,かずカナ名詞
27 |
28 | # Custom reading for former sumo wrestler
29 | 朝青龍,朝青龍,アサショウリュウ,カスタム人名
30 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/data_driven_schema_configs/conf/params.json:
--------------------------------------------------------------------------------
1 | {"params":{
2 | "query":{
3 | "defType":"edismax",
4 | "q.alt":"*:*",
5 | "rows":"10",
6 | "fl":"*,score",
7 | "":{"v":0}
8 | },
9 | "facets":{
10 | "facet":"on",
11 | "facet.mincount": "1",
12 | "":{"v":0}
13 | },
14 | "velocity":{
15 | "wt": "velocity",
16 | "v.template":"browse",
17 | "v.layout": "layout",
18 | "":{"v":0}
19 | }
20 | }}
21 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/data_driven_schema_configs/conf/protwords.txt:
--------------------------------------------------------------------------------
1 | # The ASF licenses this file to You under the Apache License, Version 2.0
2 | # (the "License"); you may not use this file except in compliance with
3 | # the License. You may obtain a copy of the License at
4 | #
5 | # http://www.apache.org/licenses/LICENSE-2.0
6 | #
7 | # Unless required by applicable law or agreed to in writing, software
8 | # distributed under the License is distributed on an "AS IS" BASIS,
9 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 | # See the License for the specific language governing permissions and
11 | # limitations under the License.
12 |
13 | #-----------------------------------------------------------------------
14 | # Use a protected word file to protect against the stemmer reducing two
15 | # unrelated words to the same base word.
16 |
17 | # Some non-words that normally won't be encountered,
18 | # just to test that they won't be stemmed.
19 | dontstems
20 | zwhacky
21 |
22 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/data_driven_schema_configs/conf/stopwords.txt:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/data_driven_schema_configs/conf/synonyms.txt:
--------------------------------------------------------------------------------
1 | # The ASF licenses this file to You under the Apache License, Version 2.0
2 | # (the "License"); you may not use this file except in compliance with
3 | # the License. You may obtain a copy of the License at
4 | #
5 | # http://www.apache.org/licenses/LICENSE-2.0
6 | #
7 | # Unless required by applicable law or agreed to in writing, software
8 | # distributed under the License is distributed on an "AS IS" BASIS,
9 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 | # See the License for the specific language governing permissions and
11 | # limitations under the License.
12 |
13 | #-----------------------------------------------------------------------
14 | #some test synonym mappings unlikely to appear in real input text
15 | aaafoo => aaabar
16 | bbbfoo => bbbfoo bbbbar
17 | cccfoo => cccbar cccbaz
18 | fooaaa,baraaa,bazaaa
19 |
20 | # Some synonym groups specific to this example
21 | GB,gib,gigabyte,gigabytes
22 | MB,mib,megabyte,megabytes
23 | Television, Televisions, TV, TVs
24 | #notice we use "gib" instead of "GiB" so any WordDelimiterFilter coming
25 | #after us won't split it into two words.
26 |
27 | # Synonym mappings can be used for spelling correction too
28 | pixima => pixma
29 |
30 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/_rest_managed.json:
--------------------------------------------------------------------------------
1 | {"initArgs":{},"managedList":[]}
2 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/_schema_analysis_stopwords_english.json:
--------------------------------------------------------------------------------
1 | {
2 | "initArgs":{"ignoreCase":true},
3 | "managedList":[
4 | "a",
5 | "an",
6 | "and",
7 | "are",
8 | "as",
9 | "at",
10 | "be",
11 | "but",
12 | "by",
13 | "for",
14 | "if",
15 | "in",
16 | "into",
17 | "is",
18 | "it",
19 | "no",
20 | "not",
21 | "of",
22 | "on",
23 | "or",
24 | "stopworda",
25 | "stopwordb",
26 | "such",
27 | "that",
28 | "the",
29 | "their",
30 | "then",
31 | "there",
32 | "these",
33 | "they",
34 | "this",
35 | "to",
36 | "was",
37 | "will",
38 | "with"]}
39 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/_schema_analysis_synonyms_english.json:
--------------------------------------------------------------------------------
1 | {
2 | "initArgs":{
3 | "ignoreCase":true,
4 | "format":"solr"
5 | },
6 | "managedMap":{
7 | "GB":["GiB","Gigabyte"],
8 | "happy":["glad","joyful"],
9 | "TV":["Television"]
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/admin-extra.html:
--------------------------------------------------------------------------------
1 |
17 |
18 |
25 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/admin-extra.menu-bottom.html:
--------------------------------------------------------------------------------
1 |
17 |
18 |
19 |
26 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/admin-extra.menu-top.html:
--------------------------------------------------------------------------------
1 |
17 |
18 |
19 |
26 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/clustering/carrot2/README.txt:
--------------------------------------------------------------------------------
1 | An override location of the clustering algorithm's resources
2 | attribute definitions and lexical resources.
3 |
4 | A directory from which to load algorithm-specific stop words,
5 | stop labels and attribute definition XMLs.
6 |
7 | For an overview of Carrot2 lexical resources, see:
8 | http://download.carrot2.org/head/manual/#chapter.lexical-resources
9 |
10 | For an overview of Lingo3G lexical resources, see:
11 | http://download.carrotsearch.com/lingo3g/manual/#chapter.lexical-resources
12 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/clustering/carrot2/kmeans-attributes.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/clustering/carrot2/lingo-attributes.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
10 |
11 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/clustering/carrot2/stc-attributes.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/lang/contractions_ca.txt:
--------------------------------------------------------------------------------
1 | # Set of Catalan contractions for ElisionFilter
2 | # TODO: load this as a resource from the analyzer and sync it in build.xml
3 | d
4 | l
5 | m
6 | n
7 | s
8 | t
9 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/lang/contractions_fr.txt:
--------------------------------------------------------------------------------
1 | # Set of French contractions for ElisionFilter
2 | # TODO: load this as a resource from the analyzer and sync it in build.xml
3 | l
4 | m
5 | t
6 | qu
7 | n
8 | s
9 | j
10 | d
11 | c
12 | jusqu
13 | quoiqu
14 | lorsqu
15 | puisqu
16 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/lang/contractions_ga.txt:
--------------------------------------------------------------------------------
1 | # Set of Irish contractions for ElisionFilter
2 | # TODO: load this as a resource from the analyzer and sync it in build.xml
3 | d
4 | m
5 | b
6 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/lang/contractions_it.txt:
--------------------------------------------------------------------------------
1 | # Set of Italian contractions for ElisionFilter
2 | # TODO: load this as a resource from the analyzer and sync it in build.xml
3 | c
4 | l
5 | all
6 | dall
7 | dell
8 | nell
9 | sull
10 | coll
11 | pell
12 | gl
13 | agl
14 | dagl
15 | degl
16 | negl
17 | sugl
18 | un
19 | m
20 | t
21 | s
22 | v
23 | d
24 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/lang/hyphenations_ga.txt:
--------------------------------------------------------------------------------
1 | # Set of Irish hyphenations for StopFilter
2 | # TODO: load this as a resource from the analyzer and sync it in build.xml
3 | h
4 | n
5 | t
6 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/lang/stemdict_nl.txt:
--------------------------------------------------------------------------------
1 | # Set of overrides for the dutch stemmer
2 | # TODO: load this as a resource from the analyzer and sync it in build.xml
3 | fiets fiets
4 | bromfiets bromfiets
5 | ei eier
6 | kind kinder
7 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/lang/stopwords_el.txt:
--------------------------------------------------------------------------------
1 | # Lucene Greek Stopwords list
2 | # Note: by default this file is used after GreekLowerCaseFilter,
3 | # so when modifying this file use 'σ' instead of 'ς'
4 | ο
5 | η
6 | το
7 | οι
8 | τα
9 | του
10 | τησ
11 | των
12 | τον
13 | την
14 | και
15 | κι
16 | κ
17 | ειμαι
18 | εισαι
19 | ειναι
20 | ειμαστε
21 | ειστε
22 | στο
23 | στον
24 | στη
25 | στην
26 | μα
27 | αλλα
28 | απο
29 | για
30 | προσ
31 | με
32 | σε
33 | ωσ
34 | παρα
35 | αντι
36 | κατα
37 | μετα
38 | θα
39 | να
40 | δε
41 | δεν
42 | μη
43 | μην
44 | επι
45 | ενω
46 | εαν
47 | αν
48 | τοτε
49 | που
50 | πωσ
51 | ποιοσ
52 | ποια
53 | ποιο
54 | ποιοι
55 | ποιεσ
56 | ποιων
57 | ποιουσ
58 | αυτοσ
59 | αυτη
60 | αυτο
61 | αυτοι
62 | αυτων
63 | αυτουσ
64 | αυτεσ
65 | αυτα
66 | εκεινοσ
67 | εκεινη
68 | εκεινο
69 | εκεινοι
70 | εκεινεσ
71 | εκεινα
72 | εκεινων
73 | εκεινουσ
74 | οπωσ
75 | ομωσ
76 | ισωσ
77 | οσο
78 | οτι
79 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/lang/stopwords_hy.txt:
--------------------------------------------------------------------------------
1 | # example set of Armenian stopwords.
2 | այդ
3 | այլ
4 | այն
5 | այս
6 | դու
7 | դուք
8 | եմ
9 | են
10 | ենք
11 | ես
12 | եք
13 | է
14 | էի
15 | էին
16 | էինք
17 | էիր
18 | էիք
19 | էր
20 | ըստ
21 | թ
22 | ի
23 | ին
24 | իսկ
25 | իր
26 | կամ
27 | համար
28 | հետ
29 | հետո
30 | մենք
31 | մեջ
32 | մի
33 | ն
34 | նա
35 | նաև
36 | նրա
37 | նրանք
38 | որ
39 | որը
40 | որոնք
41 | որպես
42 | ու
43 | ում
44 | պիտի
45 | վրա
46 | և
47 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/lang/userdict_ja.txt:
--------------------------------------------------------------------------------
1 | #
2 | # This is a sample user dictionary for Kuromoji (JapaneseTokenizer)
3 | #
4 | # Add entries to this file in order to override the statistical model in terms
5 | # of segmentation, readings and part-of-speech tags. Notice that entries do
6 | # not have weights since they are always used when found. This is by-design
7 | # in order to maximize ease-of-use.
8 | #
9 | # Entries are defined using the following CSV format:
10 | # , ... , ... ,
11 | #
12 | # Notice that a single half-width space separates tokens and readings, and
13 | # that the number tokens and readings must match exactly.
14 | #
15 | # Also notice that multiple entries with the same is undefined.
16 | #
17 | # Whitespace only lines are ignored. Comments are not allowed on entry lines.
18 | #
19 |
20 | # Custom segmentation for kanji compounds
21 | 日本経済新聞,日本 経済 新聞,ニホン ケイザイ シンブン,カスタム名詞
22 | 関西国際空港,関西 国際 空港,カンサイ コクサイ クウコウ,カスタム名詞
23 |
24 | # Custom segmentation for compound katakana
25 | トートバッグ,トート バッグ,トート バッグ,かずカナ名詞
26 | ショルダーバッグ,ショルダー バッグ,ショルダー バッグ,かずカナ名詞
27 |
28 | # Custom reading for former sumo wrestler
29 | 朝青龍,朝青龍,アサショウリュウ,カスタム人名
30 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/protwords.txt:
--------------------------------------------------------------------------------
1 | # The ASF licenses this file to You under the Apache License, Version 2.0
2 | # (the "License"); you may not use this file except in compliance with
3 | # the License. You may obtain a copy of the License at
4 | #
5 | # http://www.apache.org/licenses/LICENSE-2.0
6 | #
7 | # Unless required by applicable law or agreed to in writing, software
8 | # distributed under the License is distributed on an "AS IS" BASIS,
9 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 | # See the License for the specific language governing permissions and
11 | # limitations under the License.
12 |
13 | #-----------------------------------------------------------------------
14 | # Use a protected word file to protect against the stemmer reducing two
15 | # unrelated words to the same base word.
16 |
17 | # Some non-words that normally won't be encountered,
18 | # just to test that they won't be stemmed.
19 | dontstems
20 | zwhacky
21 |
22 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/spellings.txt:
--------------------------------------------------------------------------------
1 | pizza
2 | history
3 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/stopwords.txt:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/synonyms.txt:
--------------------------------------------------------------------------------
1 | # The ASF licenses this file to You under the Apache License, Version 2.0
2 | # (the "License"); you may not use this file except in compliance with
3 | # the License. You may obtain a copy of the License at
4 | #
5 | # http://www.apache.org/licenses/LICENSE-2.0
6 | #
7 | # Unless required by applicable law or agreed to in writing, software
8 | # distributed under the License is distributed on an "AS IS" BASIS,
9 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 | # See the License for the specific language governing permissions and
11 | # limitations under the License.
12 |
13 | #-----------------------------------------------------------------------
14 | #some test synonym mappings unlikely to appear in real input text
15 | aaafoo => aaabar
16 | bbbfoo => bbbfoo bbbbar
17 | cccfoo => cccbar cccbaz
18 | fooaaa,baraaa,bazaaa
19 |
20 | # Some synonym groups specific to this example
21 | GB,gib,gigabyte,gigabytes
22 | MB,mib,megabyte,megabytes
23 | Television, Televisions, TV, TVs
24 | #notice we use "gib" instead of "GiB" so any WordDelimiterFilter coming
25 | #after us won't split it into two words.
26 |
27 | # Synonym mappings can be used for spelling correction too
28 | pixima => pixma
29 |
30 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/velocity/browse.vm:
--------------------------------------------------------------------------------
1 | #**
2 | * Main entry point into the /browse templates
3 | *#
4 |
5 | #set($searcher = $request.searcher)
6 | #set($params = $request.params)
7 | #set($clusters = $response.response.clusters)
8 | #set($mltResults = $response.response.get("moreLikeThis"))
9 | #set($annotate = $params.get("annotateBrowse"))
10 | #parse('query_form.vm')
11 | #parse('did_you_mean.vm')
12 |
13 |
34 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/velocity/cluster.vm:
--------------------------------------------------------------------------------
1 | #**
2 | * Check if Clustering is Enabled and then
3 | * call cluster_results.vm
4 | *#
5 |
6 |
7 | Clusters
8 |
9 |
10 | ## Div tag has placeholder text by default
11 |
12 | Run Solr with option -Dsolr.clustering.enabled=true to see clustered search results.
13 |
14 |
15 | ## Replace the div content *if* Carrot^2 is available
16 |
20 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/velocity/cluster_results.vm:
--------------------------------------------------------------------------------
1 | #**
2 | * Actual rendering of Clusters
3 | *#
4 |
5 | ## For each cluster
6 | #foreach ($clusters in $response.response.clusters)
7 |
8 | #set($labels = $clusters.get('labels'))
9 | #set($docs = $clusters.get('docs'))
10 |
11 | ## This Cluster's Heading
12 |
13 | #foreach ($label in $labels)
14 | ## Keep the following line together to prevent
15 | ## a space appearing before each comma
16 | $label#if( $foreach.hasNext ),#end
17 | #end
18 |
19 |
20 | ## This Cluster's Documents
21 |
22 | ## For each doc in this cluster
23 | #foreach ($cluDoc in $docs)
24 |
9 |
10 | #foreach ($field in $response.response.facet_counts.facet_ranges)
11 | ## Hide facets without value
12 | #if($field.value.counts.size() > 0)
13 | #set($name = $field.key)
14 | #set($display = $name)
15 | #set($f = $field.value.counts)
16 | #set($start = $field.value.start)
17 | #set($end = $field.value.end)
18 | #set($gap = $field.value.gap)
19 | #set($before = $field.value.before)
20 | #set($after = $field.value.after)
21 | #display_facet_range($f, $display, $name, $start, $end, $gap, $before, $after)
22 | #end ## end if has any values
23 | #end ## end for each facet range
24 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/velocity/facets.vm:
--------------------------------------------------------------------------------
1 | #**
2 | * Overall Facet display block
3 | * Invokes the 4 facet and 1 cluster template
4 | *#
5 |
6 | #parse('facet_fields.vm')
7 | #parse('facet_queries.vm')
8 | #parse('facet_ranges.vm')
9 | #parse('facet_pivot.vm')
10 | #parse('cluster.vm')
11 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/velocity/header.vm:
--------------------------------------------------------------------------------
1 | #**
2 | * Render the top section of the page visible to users
3 | *#
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/velocity/hit.vm:
--------------------------------------------------------------------------------
1 | #**
2 | * Called for each matching document but then
3 | * calls one of product_doc, join_doc or richtext_doc
4 | * depending on which fields the doc has
5 | *#
6 |
7 | #set($docId = $doc.getFieldValue('id'))
8 |
9 |
10 |
11 | ## Has a "name" field ?
12 | #if($doc.getFieldValue('name'))
13 | #parse("product_doc.vm")
14 |
15 | ## Has a "compName_s" field ?
16 | #elseif($doc.getFieldValue('compName_s'))
17 | #parse("join_doc.vm")
18 |
19 | ## Fallback to richtext_doc
20 | #else
21 | #parse("richtext_doc.vm")
22 |
23 | #end
24 |
25 |
39 |
40 | #end ## end of foreach group in grouping.value.groups
41 |
## div tag for entire list of groups
42 |
43 |
## end of div class=result-document
44 |
--------------------------------------------------------------------------------
/solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/velocity/hit_plain.vm:
--------------------------------------------------------------------------------
1 | #**
2 | * An extremely plain / debug version of hit.vm
3 | *#
4 |
5 |
6 | ## For each field
7 | #foreach( $fieldName in $doc.fieldNames )
8 | ## For each value
9 | #foreach( $value in $doc.getFieldValues($fieldName) )
10 |