Package org.apache.nutch.searcher.DistributedSearch

Examples of org.apache.nutch.searcher.DistributedSearch.Client


    int port=conf.getInt(DISTRIBUTED_SEARCH_TEST_PORT, DEFAULT_PORT);
   
    InetSocketAddress[] addresses=new InetSocketAddress[1];
    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

Related Classes of org.apache.nutch.searcher.DistributedSearch.Client

Copyright © 2018 www.massapicom. 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.