[
https://issues.apache.org/jira/browse/NUTCH-1493?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Markus Jelsma reopened NUTCH-1493:
----------------------------------
There's a build problem in trunk:
{code}
[echo] Compiling plugin: index-more
[javac]
/home/markus/projects/apache/nutch/trunk/src/plugin/build-plugin.xml:117:
warning: 'includeantruntime' was not set, defaulting to
build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 1 source file to
/home/markus/projects/apache/nutch/trunk/build/index-more/classes
[javac]
/home/markus/projects/apache/nutch/trunk/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java:173:
not a statement
[javac] String trimmed = contentLength.toString().trim();
[javac] ^
[javac]
/home/markus/projects/apache/nutch/trunk/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java:173:
';' expected
[javac] String trimmed = contentLength.toString().trim();
[javac] ^
[javac] 2 errors
{code}
> Error adding field 'contentLength'='' during solrindex using index-more
> -----------------------------------------------------------------------
>
> Key: NUTCH-1493
> URL: https://issues.apache.org/jira/browse/NUTCH-1493
> Project: Nutch
> Issue Type: Bug
> Components: indexer
> Affects Versions: 1.6, 2.1, 2.2
> Reporter: Nathan Gass
> Assignee: Lewis John McGibbney
> Fix For: 1.6, 2.2
>
> Attachments: patch-index-more-20121107.txt
>
>
> The contentLength can be an empty string (I assume this is possible because
> of NUTCH-1096), but solr does not accept this. The attached patch just checks
> for empty string contentLength and does not try to index it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira