Package com.senseidb.search.node

Examples of com.senseidb.search.node.SenseiCore


      compositeActivityValues.update(i, String.format("%08d", i), ActivityPrimitiveValuesPersistenceTest.toMap(new JSONObject().put("likes", "+1")));
    }   
    compositeActivityValues.flush();
    compositeActivityValues.syncWithPersistentVersion(String.format("%08d", valueCount - 1));
    assertEquals(100000, compositeActivityValues.metadata.count);
    SenseiCore senseiCore = new SenseiCore(0, new int[] {0}, null, null, null, null) {
      @Override
      public IndexReaderFactory<ZoieIndexReader<BoboIndexReader>> getIndexReaderFactory(int partition) {
          return zoie;
      }
    };
View Full Code Here


        SenseiQueryBuilderFactory queryBuilderFactory = pluginRegistry.getBeanByFullPrefix(SENSEI_QUERY_BUILDER_FACTORY, SenseiQueryBuilderFactory.class);
        if (queryBuilderFactory == null) {
            QueryParser queryParser = new QueryParser(Version.LUCENE_35, "contents", analyzer);
            queryBuilderFactory = new DefaultJsonQueryBuilderFactory(queryParser);
        }
        SenseiCore senseiCore = new SenseiCore(nodeid, partitions, zoieSystemFactory, indexingManager, queryBuilderFactory, decorator);
        senseiCore.setSystemInfo(sysInfo);
        SenseiIndexPruner indexPruner = pluginRegistry.getBeanByFullPrefix(SENSEI_INDEX_PRUNER, SenseiIndexPruner.class);
        if (indexPruner != null) {
            senseiCore.setIndexPruner(indexPruner);
        }
        if (pluggableSearchEngineManager != null) {
            senseiCore.setPluggableSearchEngineManager(pluggableSearchEngineManager);
        }
        return senseiCore;
    }
View Full Code Here

        ClusterClient clusterClient = buildClusterClient();

        NetworkServer networkServer = buildNetworkServer(_senseiConf, clusterClient);

        SenseiCore core = buildCore();

        List<AbstractSenseiCoreService<AbstractSenseiRequest, AbstractSenseiResult>> svcList = (List) pluginRegistry.resolveBeansByListKey(SENSEI_PLUGIN_SVCS, AbstractSenseiCoreService.class);


        return new SenseiServer(port, networkServer, clusterClient, core, svcList, pluginRegistry, shutdownPauseMillis);
View Full Code Here

        return null;
      }
    },zoieConfig);
    QueryParser queryParser = new QueryParser(Version.LUCENE_35,"contents", new StandardAnalyzer(Version.LUCENE_35));
    DefaultJsonQueryBuilderFactory queryBuilderFactory = new DefaultJsonQueryBuilderFactory(queryParser);
    _core = new SenseiCore(1,new int[]{0},zoieFactory,null,queryBuilderFactory, zoieFactory.getDecorator());
    _coreService = new CoreSenseiServiceImpl(_core);
    _core.start();
  }
View Full Code Here

TOP

Related Classes of com.senseidb.search.node.SenseiCore

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.