Searching certain keywords e.g.: 'a' , 'to' , 'and' throws errors on Examine
Hi All,
I am using Examine for the search functionality of my current Umbraco project. The implementation is pretty straight-forward (minor modificationn based on the demo code provided from Umbraco Videos).
I am having issues with searching certain keywords e.g. ; 'a' , 'to' , 'and' , 'with' and pretty much all the words skipped by the analyser.( http://www.aaron-powell.com/lucene-analyzer). The code will fail on the line where ExamineManager.Instance.SearchProviderCollection[ExamineSearcher].Search(filter); is executed and returns 'Object reference not set to an instance of an object' error. Searching on other keywords is working fine.
Has anyone had this issue before? How do you fix this?
Following are the snippets of the code where I used Examine api to return the search results as well as my examineindex.config and ExamineSetting.config.
Searching certain keywords e.g.: 'a' , 'to' , 'and' throws errors on Examine
Hi All,
I am using Examine for the search functionality of my current Umbraco project. The implementation is pretty straight-forward (minor modificationn based on the demo code provided from Umbraco Videos).
I am having issues with searching certain keywords e.g. ; 'a' , 'to' , 'and' , 'with' and pretty much all the words skipped by the analyser.( http://www.aaron-powell.com/lucene-analyzer). The code will fail on the line where ExamineManager.Instance.SearchProviderCollection[ExamineSearcher].Search(filter);
is executed and returns 'Object reference not set to an instance of an object' error. Searching on other keywords is working fine.
Has anyone had this issue before? How do you fix this?
Following are the snippets of the code where I used Examine api to return the search results as well as my examineindex.config and ExamineSetting.config.
Any helps will be appreciated . Thanks :)
is working on a reply...