Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

add languages to default config

Nicola Marcacci Rossi5ccebc95b807
diff --git a/conf/nutch-default.xml b/conf/nutch-default.xml
index 5e8606fe4..a53cf7b96 100644
--- a/conf/nutch-default.xml
+++ b/conf/nutch-default.xml
@@ -2109,6 +2109,18 @@ visit https://wiki.apache.org/nutch/SimilarityScoringFilter-->
<description>Default index to send documents to.</description>
</property>
+<property>
+ <name>elastic.rest.languages</name>
+ <value></value>
+ <description>
+ A list of strings denoting the supported languages (e.g. `en,de,fr,it`).
+ If this value is empty all documents will be sent to index ${elastic.rest.index}.
+ If not empty the Rest client will distribute documents in different indices based on their `lang` property.
+ Indices are named with the following schema: ${elastic.rest.index}_${lang} (e.g. `nutch_de`).
+ Entries with an unsupported `lang` value will be added to index ${elastic.rest.index}_others (e.g. `nutch_others`).
+ </description>
+</property>
+
<property>
<name>elastic.rest.type</name>
<value>doc</value>