Store Lucene index file in a remote location

Hi
Is there a way to store lucene index files in a remote place, for example, I am on a PC (A) and want to index my documents, but store the result in a remote place, for example, some kind of directory on a PC (B), it is supported internally, or should I write my own code to support it?

much thanks to the exact reaction

+5
source share
2 answers

Several options are available depending on your network settings.

, FSDirectory.Open(@"\\server\index"), , , .

, FSDirectory RAMDirectory, Directory.Copy(src, dest, closeDirSrc), . , , .

, ( Directory), , (ftp, , ..).

+6
  • , " ", (B) , , .
  • ,
+1

All Articles