You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default examine creates a directory while indexing. The problem is if I want to create a library project and then want to share it across multiple project where same index is needed than I must need to set the index creation location. Otherwise when I will reference the dll project, examinee will create a separate index for that project only. How can I set this location?
The text was updated successfully, but these errors were encountered:
Lucene indexes cannot be shared by more than one process. If you want to host an index that is accessible by multiple processes, then you should host that index in a centralized location and use custom REST calls to query and/or write to the the index.
Alternatively, it is possible to replicate lucene indexes to other locations and have those other processes read them but that is mostly outside the scope of Examine. Some example code however, can be found in Examine. Examine ships with a custom directory factory: SyncedFileSystemDirectoryFactory which is a specialized directory factory for working with lucene on Azure web apps whereby the lucene index is run from the %temp% location while always syncing the index back to the main directory (network share in azure). Then on startup, if there is an index in the main directory, it is replicated to the %temp% directory and the indexes operate from there.
As a side note, ExamineX is a commercial project that is an implementation of Examine that uses Azure Search as the underlying index/search engine and since that is a 'search as a service' it means that the index can be accessed by multiple processes at once. https://examinex.online/
By default examine creates a directory while indexing. The problem is if I want to create a library project and then want to share it across multiple project where same index is needed than I must need to set the index creation location. Otherwise when I will reference the dll project, examinee will create a separate index for that project only. How can I set this location?
The text was updated successfully, but these errors were encountered: