Package com.senseidb.search.req

Examples of com.senseidb.search.req.SenseiJavaSerializer


    File conf = new File(FederatedBrokerIntegrationTest.class.getClassLoader().getResource("conf").toURI());
    InMemorySenseiService senseiInMemoryService = InMemorySenseiService.valueOf(conf);

    // sensei proxy
    PropertiesConfiguration senseiConfiguration = new PropertiesConfiguration(FederatedBrokerIntegrationTest.class.getClassLoader().getResource("conf/sensei.properties"));
    senseiProxy = SenseiBrokerProxy.valueOf(senseiConfiguration, new HashMap<String, String>(), new SenseiJavaSerializer());
    // memory proxy
    GenericBrokerProxy memoryProxy = new GenericBrokerProxy(senseiInMemoryService, new MockDataSource(readCarDocs()));

    // federated broker
    federatedBroker = new FederatedBroker();
View Full Code Here


          try {rmrf(new File(indexDir));} catch (Exception e){};

          zkServer.stop();
        }
      });
      SenseiBrokerProxy brokerProxy = SenseiBrokerProxy.valueOf(senseiConfiguration, new HashMap<String, String>(), new SenseiJavaSerializer());
      while (true) {
        SenseiResult senseiResult = brokerProxy.doQuery(new SenseiRequest()).get(0);
        int totalDocs = senseiResult.getTotalDocs();
        System.out.println("TotalDocs = " + totalDocs);
        if (totalDocs >= expectedDocs) {
View Full Code Here

TOP

Related Classes of com.senseidb.search.req.SenseiJavaSerializer

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.