Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Nutch Wiki" for change 
notification.

The "JavaDemoApplication" page has been changed by Cristian Vulpe.
http://wiki.apache.org/nutch/JavaDemoApplication?action=diff&rev1=14&rev2=15

--------------------------------------------------

  With that, all is ready and we can now write some simple code to search. A 
quick example in Java to search the crawl index and return the number of hits 
found is:
  
  {{{
- package com.siemens.scr.sgcm.service;
- 
- import java.util.Date;
  
  // necessary imports
  import org.apache.hadoop.conf.Configuration;
@@ -124, +121 @@

  import org.apache.nutch.searcher.NutchBean;
  import org.apache.nutch.searcher.Query;
  import org.apache.nutch.util.NutchConfiguration;
+ import java.util.Date;
  
  public class Search {
        public static void main(String[] args) {

Reply via email to