Package org.apache.nutch.searcher.DistributedSearch

Examples of org.apache.nutch.searcher.DistributedSearch.Client.search()


    addresses[0]=new InetSocketAddress("localhost", port);
   
    Client c=new DistributedSearch.Client(addresses, conf);

    Query query=Query.parse("apache", conf);
    Hits hits=c.search(query, 5, null, null, false);
    c.getDetails(hits.getHit(0));
    assertTrue(hits.getTotal()>0);
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.