examine

Unhandled exception in AppDomain - read past EOF error in Lucene indexing

放肆的年华 提交于 2021-02-11 13:21:15
问题 We've been having a problem with Lucene indexing for a while already. Basically quite often when we try to publish a content the indexing just throws an error like this: 2020-01-13 22:22:38,068 [P36840/D2/TLucene Merge Thread #0] ERROR Umbraco.Core.UmbracoApplicationBase - Unhandled exception in AppDomain (terminating) Lucene.Net.Index.MergePolicy+MergeException: Exception of type 'Lucene.Net.Index.MergePolicy+MergeException' was thrown. ---> System.IO.IOException: read past EOF at Lucene.Net

How can I find an IndexSet's path in Examine?

坚强是说给别人听的谎言 提交于 2019-12-13 19:51:18
问题 In my Umbraco project, I have multiple Examine IndexSets defined in the configuration files. How can I programmatically retrieve an individual IndexSet's path? I am aware of the Examine.LuceneEngine.Config.IndexSetCollection but I cannot seem to get a populated instance of this object. 回答1: I have found the answer myself, so I thought I would share it: IndexSetCollection sets = Examine.LuceneEngine.Config.IndexSets.Instance.Sets; IndexSet set = sets["Set_Name"]; DirectoryInfo dir = set

Ignore special characters in Examine

心不动则不痛 提交于 2019-12-08 19:12:34
In Umbraco, I use Examine to search in the website but the content is in french. Everything works fine except when I search for "Français" it's not the same result as "Francais". Is there a way to ignore those french characters? I try to find a FrenchAnalyser for Leucene/Examine but did not found anything. I use Fuzzy so it return results even if the words is not the same. Here's the code of my search : public static ISearchResults Search(string searchTerm) { var provider = ExamineManager.Instance.SearchProviderCollection["ExternalSearcher"]; var criteria = provider.CreateSearchCriteria

Ignore special characters in Examine

旧街凉风 提交于 2019-12-08 07:04:23
问题 In Umbraco, I use Examine to search in the website but the content is in french. Everything works fine except when I search for "Français" it's not the same result as "Francais". Is there a way to ignore those french characters? I try to find a FrenchAnalyser for Leucene/Examine but did not found anything. I use Fuzzy so it return results even if the words is not the same. Here's the code of my search : public static ISearchResults Search(string searchTerm) { var provider = ExamineManager