[ 
https://issues.apache.org/jira/browse/NUTCH-956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13064148#comment-13064148
 ] 

Alexis commented on NUTCH-956:
------------------------------

I do get the NPE when indexing this url

http://www.truveo.com/ (Content-Type header is "Content-Type: text/html; 
charset=utf-8")

without the 
src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java
 patch.

{code}
java.lang.NullPointerException
        at 
org.apache.nutch.indexer.more.MoreIndexingFilter.addType(MoreIndexingFilter.java:204)
        at 
org.apache.nutch.indexer.more.MoreIndexingFilter.filter(MoreIndexingFilter.java:78)
        at 
org.apache.nutch.indexer.IndexingFilters.filter(IndexingFilters.java:107)
        at 
org.apache.nutch.indexer.IndexerReducer.reduce(IndexerReducer.java:73)
        at org.apache.nutch.indexer.IndexerReducer.reduce(IndexerReducer.java:1)
        at org.apache.hadoop.mapreduce.Reducer.run(Reducer.java:176)
        at 
org.apache.hadoop.mapred.ReduceTask.runNewReducer(ReduceTask.java:566)
        at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:408)
        at 
org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:216)
{code}


See attached patch "solr.patch2".
If you have time can you please go ahead an run the entire tests suite as well:

1 InjectorJob
2 GeneratorJob
3 FetcherJob
4 ParserJob
5 DbUpdaterJob
6 SolrIndexerJob
(Finally chech the index with 
http://localhost:8983/solr/select/?q=video&indent=on in the browser)

at least on this seed url:
- http://www.truveo.com/


Regarding the String comparison in Java, I believe people usually call 
String.equals instead of using the boolean comparator (==).

> solrindex issues
> ----------------
>
>                 Key: NUTCH-956
>                 URL: https://issues.apache.org/jira/browse/NUTCH-956
>             Project: Nutch
>          Issue Type: Bug
>          Components: indexer
>    Affects Versions: 2.0
>            Reporter: Alexis
>             Fix For: 1.4, 2.0
>
>         Attachments: solr.patch
>
>
> I ran into a few caveats with solrindex command trying to index documents.
> Please refer to 
> http://techvineyard.blogspot.com/2010/12/build-nutch-20.html#solrindex that 
> describes my tests.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to