solr DIHを使用してインデックスを作成しました。Lucene.net ライブラリを使用してそのインデックス データをクエリしたいと考えています。
solr インデックスのパスは D:\Tests\solr\example\example-DIH\solr\db\data\index です
lucene インデックス ディレクトリ オブジェクトを作成するために使用するコードは次のとおりです。
Analyzer anz = new StandardAnalyzer();
Directory dir =
FSDirectory.GetDirectory(@"D:\Tests\solr\example\example DIH\solr\db\data\index", false);
IndexSearcher isearcher = new IndexSearcher(dir);
コードの最後の行を実行すると、次の例外が発生します。
ファイル 'D:\Tests\solr\example\example-DIH\solr\db\data\index\segments' が見つかりませんでした。
私のsolrインデックスフォルダー内のファイルが
- _0.fdt
- _0.fdx
- _0.fnm
- _0.frq
- _0.nrm
- _0.prx
- _0.tii
- _0.tis
- セグメント.gen
- セグメント_2
それで、問題は何ですか??