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;