有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java我可以直接在文件系统中存储ElasticSearch索引吗?

我们是否可以将ElasticSearch索引存储在磁盘上(无服务安装),就像我们可以使用Lucene那样

我们能做到这么简单吗

...
File indexDir = new File(INDEX_DIRECTORY);
Directory directory = FSDirectory.open(indexDir);
Analyzer analyzer = new StandardAnalyzer(Version.LUCENE_35);
IndexWriterConfig conf = new IndexWriterConfig(Version.LUCENE_35, analyzer);
IndexWriter writer = new IndexWriter(directory, conf);
...

如果是,如何实施


共 (0) 个答案