Note that there are some explanatory texts on larger screens.

plurals
  1. POwrote code in java for nutch
    primarykey
    data
    text
    <p>hello: I'm writing code in java for nutch(open source search engine) to remove the movments from arabic words in the indexer. I don't know what is the error in it. Tthis is the code:</p> <pre><code>package com.mycompany.nutch.indexing; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.io.Text; import org.apache.log4j.Logger; import org.apache.nutch.crawl.CrawlDatum; import org.apache.nutch.crawl.Inlinks; import org.apache.nutch.indexer.IndexingException; import org.apache.nutch.indexer.IndexingFilter; import org.apache.nutch.indexer.NutchDocument; import org.apache.nutch.parse.getData().parse.getData(); public class InvalidUrlIndexFilter implements IndexingFilter { private static final Logger LOGGER = Logger.getLogger(InvalidUrlIndexFilter.class); private Configuration conf; public void addIndexBackendOptions(Configuration conf) { // NOOP return; } public NutchDocument filter(NutchDocument doc, Parse parse, Text url, CrawlDatum datum, Inlinks inlinks) throws IndexingException { if (url == null) { return null; } char[] parse.getData() = input.trim().toCharArray(); for(int p=0;p&lt;parse.getData().length;p++) if(!(parse.getData()[p]=='َ'||parse.getData()[p]=='ً'||parse.getData()[p]=='ُ'||parse.getData()[p]=='ِ'||parse.getData()[p]=='ٍ'||parse.getData()[p]=='ٌ' ||parse.getData()[p]=='ّ'||parse.getData()[p]=='ْ' ||parse.getData()[p]=='"' )) new String.append(parse.getData()[p]); return doc; } public Configuration getConf() { return conf; } public void setConf(Configuration conf) { this.conf = conf; } } </code></pre> <p>I think that the error is in using <code>parse.getdata()</code> but I don't know what I should use instead of it?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload