Apache Nutch is an extensible and scalable web crawler
Merge branch 'master' of https://github.com/apache/nutch into index-jexl-filter
pipldevc7c795a991fa
diff --cc build.xmlindex 2455f77b6,47c2a2ede..5503961a7--- a/build.xml+++ b/build.xml@@@ -1033,16 -1042,6 +1042,8 @@@<source path="${plugins.dir}/index-geoip/src/java/" /><source path="${plugins.dir}/index-links/src/java/" /><source path="${plugins.dir}/index-links/src/test/" />- <source path="${plugins.dir}/mimetype-filter/src/java/" />- <source path="${plugins.dir}/mimetype-filter/src/test/" />- <source path="${plugins.dir}/indexer-dummy/src/java/" />- <source path="${plugins.dir}/indexer-solr/src/java/" />- <source path="${plugins.dir}/indexer-rabbit/src/java/" />- <source path="${plugins.dir}/indexer-elastic/src/java/" />- <source path="${plugins.dir}/indexer-elastic/src/test/" />- <source path="${plugins.dir}/indexer-elastic-rest/src/java/"/>+ <source path="${plugins.dir}/index-jexl-filter/src/java/" />+ <source path="${plugins.dir}/index-jexl-filter/src/test/" /><source path="${plugins.dir}/index-metadata/src/java/" /><source path="${plugins.dir}/index-more/src/java/" /><source path="${plugins.dir}/index-more/src/test/" />diff --cc conf/nutch-default.xmlindex 2df8ff085,e68b0dd84..5e8606fe4--- a/conf/nutch-default.xml+++ b/conf/nutch-default.xml@@@ -1566,24 -1608,16 +1608,34 @@@ visit https://wiki.apache.org/nutch/Sim</description></property>+ <property>+ <name>lang.index.languages</name>+ <value></value>+ <description>If not empty, should be a comma separated list of language codes.+ Only documents with one of these language codes will be indexed.+ "unknown" is a valid language code, will match documents where language+ detection failed.+ </description>+ </property>++<!-- index-jexl-filter plugin properties -->++<property>+ <name>index.jexl.filter</name>+ <value></value>+ <description> A JEXL expression. If it evaluates to false,+ the document will not be indexed.+ Available primitives in the JEXL context:+ * status, fetchTime, modifiedTime, retries, interval, score, signature, url, text, title+ Available objects in the JEXL context:+ * httpStatus - contains majorCode, minorCode, message+ * documentMeta, contentMeta, parseMeta - contain all the Metadata properties.+ each property value is always an array of Strings (so if you expect one value, use [0])+ * doc - contains all the NutchFields from the NutchDocument.+ each property value is always an array of Objects.+ </description>+</property>+<!-- index-static plugin properties --><property>diff --cc src/plugin/build.xmlindex 7ea63ce8a,5402d036c..5052082cd--- a/src/plugin/build.xml+++ b/src/plugin/build.xml@@@ -26,76 -26,79 +26,80 @@@<!-- Build & deploy all the plugin jars. --><!-- ====================================================== --><target name="deploy">- <ant dir="creativecommons" target="deploy"/>- <ant dir="feed" target="deploy"/>- <ant dir="headings" target="deploy"/>- <ant dir="index-basic" target="deploy"/>- <ant dir="index-anchor" target="deploy"/>- <ant dir="index-geoip" target="deploy"/>- <ant dir="index-jexl-filter" target="deploy"/>- <ant dir="index-more" target="deploy"/>- <ant dir="index-replace" target="deploy"/>- <ant dir="index-static" target="deploy"/>- <ant dir="index-metadata" target="deploy"/>- <ant dir="index-links" target="deploy"/>- <ant dir="mimetype-filter" target="deploy"/>- <ant dir="indexer-cloudsearch" target="deploy"/>- <ant dir="indexer-dummy" target="deploy"/>- <ant dir="indexer-elastic" target="deploy"/>- <ant dir="indexer-elastic-rest" target="deploy"/>- <ant dir="indexer-solr" target="deploy"/>- <ant dir="indexer-rabbit" target="deploy"/>- <ant dir="language-identifier" target="deploy"/>- <ant dir="lib-http" target="deploy"/>- <ant dir="lib-nekohtml" target="deploy"/>- <ant dir="lib-regex-filter" target="deploy"/>- <ant dir="lib-xml" target="deploy"/>- <ant dir="microformats-reltag" target="deploy"/>- <ant dir="nutch-extensionpoints" target="deploy"/>- <ant dir="protocol-file" target="deploy"/>- <ant dir="protocol-ftp" target="deploy"/>- <ant dir="protocol-http" target="deploy"/>- <ant dir="protocol-httpclient" target="deploy"/>- <ant dir="lib-htmlunit" target="deploy"/>- <ant dir="protocol-htmlunit" target="deploy" />- <ant dir="lib-selenium" target="deploy"/>- <ant dir="protocol-selenium" target="deploy" />- <ant dir="protocol-interactiveselenium" target="deploy" />- <ant dir="parse-ext" target="deploy"/>- <ant dir="parse-js" target="deploy"/>- <ant dir="parse-html" target="deploy"/>- <ant dir="parse-metatags" target="deploy"/>- <ant dir="parse-swf" target="deploy"/>- <ant dir="parse-tika" target="deploy"/>- <ant dir="parse-zip" target="deploy"/>- <ant dir="publish-rabbitmq" target="deploy"/>- <ant dir="scoring-depth" target="deploy"/>- <ant dir="scoring-opic" target="deploy"/>- <ant dir="scoring-link" target="deploy"/>- <ant dir="scoring-similarity" target="deploy"/>- <ant dir="subcollection" target="deploy"/>- <ant dir="tld" target="deploy"/>- <ant dir="urlfilter-automaton" target="deploy"/>- <ant dir="urlfilter-domain" target="deploy" />- <ant dir="urlfilter-domainblacklist" target="deploy" />- <ant dir="urlfilter-prefix" target="deploy"/>- <ant dir="urlfilter-regex" target="deploy"/>- <ant dir="urlfilter-suffix" target="deploy"/>- <ant dir="urlfilter-validator" target="deploy"/>- <ant dir="urlfilter-ignoreexempt" target="deploy"/>- <ant dir="parsefilter-naivebayes" target="deploy"/>- <ant dir="parsefilter-regex" target="deploy"/>- <ant dir="urlmeta" target="deploy"/>- <ant dir="urlnormalizer-ajax" target="deploy"/>- <ant dir="urlnormalizer-basic" target="deploy"/>- <ant dir="urlnormalizer-host" target="deploy"/>- <ant dir="urlnormalizer-pass" target="deploy"/>- <ant dir="urlnormalizer-protocol" target="deploy"/>- <ant dir="urlnormalizer-querystring" target="deploy"/>- <ant dir="urlnormalizer-regex" target="deploy"/>- <ant dir="urlnormalizer-slash" target="deploy"/>+ <!-- first build libs, other plugins depend on them -->+ <ant dir="lib-htmlunit" target="deploy"/>+ <ant dir="lib-http" target="deploy"/>+ <ant dir="lib-nekohtml" target="deploy"/>+ <ant dir="lib-regex-filter" target="deploy"/>+ <ant dir="lib-selenium" target="deploy"/>+ <ant dir="lib-xml" target="deploy"/>+ <!-- real plugins -->+ <ant dir="creativecommons" target="deploy"/>+ <ant dir="feed" target="deploy"/>+ <ant dir="headings" target="deploy"/>+ <ant dir="index-anchor" target="deploy"/>+ <ant dir="index-basic" target="deploy"/>+ <ant dir="index-geoip" target="deploy"/>++ <ant dir="index-jexl-filter" target="deploy"/>+ <ant dir="index-links" target="deploy"/>+ <ant dir="index-metadata" target="deploy"/>+ <ant dir="index-more" target="deploy"/>+ <ant dir="index-replace" target="deploy"/>+ <ant dir="index-static" target="deploy"/>+ <ant dir="indexer-cloudsearch" target="deploy"/>+ <ant dir="indexer-dummy" target="deploy"/>+ <ant dir="indexer-elastic" target="deploy"/>+ <ant dir="indexer-elastic-rest" target="deploy"/>+ <ant dir="indexer-rabbit" target="deploy"/>+ <ant dir="indexer-solr" target="deploy"/>+ <ant dir="language-identifier" target="deploy"/>+ <ant dir="microformats-reltag" target="deploy"/>+ <ant dir="mimetype-filter" target="deploy"/>+ <ant dir="nutch-extensionpoints" target="deploy"/>+ <ant dir="parse-ext" target="deploy"/>+ <ant dir="parse-html" target="deploy"/>+ <ant dir="parse-js" target="deploy"/>+ <ant dir="parse-metatags" target="deploy"/>+ <ant dir="parse-swf" target="deploy"/>+ <ant dir="parse-tika" target="deploy"/>+ <ant dir="parse-zip" target="deploy"/>+ <ant dir="parsefilter-naivebayes" target="deploy"/>+ <ant dir="parsefilter-regex" target="deploy"/>+ <ant dir="protocol-file" target="deploy"/>+ <ant dir="protocol-ftp" target="deploy"/>+ <ant dir="protocol-htmlunit" target="deploy" />+ <ant dir="protocol-http" target="deploy"/>+ <ant dir="protocol-httpclient" target="deploy"/>+ <ant dir="protocol-interactiveselenium" target="deploy" />+ <ant dir="protocol-selenium" target="deploy" />+ <ant dir="publish-rabbitmq" target="deploy"/>+ <ant dir="scoring-depth" target="deploy"/>+ <ant dir="scoring-link" target="deploy"/>+ <ant dir="scoring-opic" target="deploy"/>+ <ant dir="scoring-orphan" target="deploy"/>+ <ant dir="scoring-similarity" target="deploy"/>+ <ant dir="subcollection" target="deploy"/>+ <ant dir="tld" target="deploy"/>+ <ant dir="urlfilter-automaton" target="deploy"/>+ <ant dir="urlfilter-domain" target="deploy" />+ <ant dir="urlfilter-domainblacklist" target="deploy" />+ <ant dir="urlfilter-prefix" target="deploy"/>+ <ant dir="urlfilter-regex" target="deploy"/>+ <ant dir="urlfilter-suffix" target="deploy"/>+ <ant dir="urlfilter-validator" target="deploy"/>+ <!-- urlfilter-ignoreexempt depends on urlfilter-regex, must build after -->+ <ant dir="urlfilter-ignoreexempt" target="deploy"/>+ <ant dir="urlmeta" target="deploy"/>+ <ant dir="urlnormalizer-ajax" target="deploy"/>+ <ant dir="urlnormalizer-basic" target="deploy"/>+ <ant dir="urlnormalizer-host" target="deploy"/>+ <ant dir="urlnormalizer-pass" target="deploy"/>+ <ant dir="urlnormalizer-protocol" target="deploy"/>+ <ant dir="urlnormalizer-querystring" target="deploy"/>+ <ant dir="urlnormalizer-regex" target="deploy"/>+ <ant dir="urlnormalizer-slash" target="deploy"/></target>-+<!-- ====================================================== --><!-- Test all of the plugins. --><!-- ====================================================== -->@@@ -151,16 -156,14 +157,15 @@@<ant dir="creativecommons" target="clean"/><ant dir="feed" target="clean"/><ant dir="headings" target="clean"/>- <ant dir="index-basic" target="clean"/><ant dir="index-anchor" target="clean"/>+ <ant dir="index-basic" target="clean"/><ant dir="index-geoip" target="clean"/>+ <ant dir="index-jexl-filter" target="clean"/>+ <ant dir="index-links" target="clean"/>+ <ant dir="index-metadata" target="clean"/><ant dir="index-more" target="clean"/>- <ant dir="index-static" target="clean"/><ant dir="index-replace" target="clean"/>- <ant dir="index-metadata" target="clean"/>- <ant dir="index-links" target="clean"/>- <ant dir="mimetype-filter" target="clean"/>+ <ant dir="index-static" target="clean"/><ant dir="indexer-cloudsearch" target="clean"/><ant dir="indexer-dummy" target="clean"/><ant dir="indexer-elastic" target="clean"/>