Package mxp.lucene.store

Examples of mxp.lucene.store.RedisDirectory


    pool = new ShardedJedisPool(new GenericObjectPool.Config(), info);
  }

  @Override
  public Directory open(String name) throws IOException {
    RedisDirectory redisDir = new RedisDirectory(name, pool);
    if( !redisDir.exists() ) {
      IndexWriter writer = new IndexWriter(redisDir, new IndexWriterConfig(Version.LUCENE_36, new StandardAnalyzer(Version.LUCENE_36)));
      writer.commit();
      writer.close();
    }
    return redisDir;
View Full Code Here

TOP

Related Classes of mxp.lucene.store.RedisDirectory

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.