Is it possible to make search within a field "Fuzzy" and yet "Boosted", but am running into two problems doing so. Is it possible to combine Fuzzy with Boost, and if so, how? I'm trying to do:
searchTerm.Fuzzy().Then().Boost(boostiness)
but am getting an ArgumentNullException on s. I also tried:
which solves the ArgumentNullException, but prevents Examine from returning results. The same thing happens if I use Boost and Fuzzy in the other order. I am probably doing something wrong, but am not sure what that would be.
at Examine.LuceneEngine.SearchCriteria.LuceneSearchExtensions.Then(IExamineValue examineValue, String s)
at Examine.LuceneEngine.SearchCriteria.LuceneSearchExtensions.Then(IExamineValue examineValue)
at ExamineTest.usercontrols.SearchResults.Page_Load(Object sender, EventArgs e)
The simplest case I could produce that generates the error is as follows:
or any of the variations of Boost/Fuzzy/Then chaining on SearchTerm that are shown in the original post.
I know I'm doing something wrong here but but I'm not sure what. nodeName is in the index and if no "fuzziness" is applied then it can be searched successfully.
I get this: Method not found: 'System.String Examine.LuceneEngine.SearchCriteria.LuceneSearchExtensions.Then(Examine.SearchCriteria.IExamineValue, System.String)'.
Been poking around under the hood - the "Then()" extension method has been commented out in recent releases. However, if you want to risk it you can actually just do this:
Examine - Combining Fuzzy with Boost
Is it possible to make search within a field "Fuzzy" and yet "Boosted", but am running into two problems doing so. Is it possible to combine Fuzzy with Boost, and if so, how? I'm trying to do:
but am getting an ArgumentNullException on s. I also tried:
which solves the ArgumentNullException, but prevents Examine from returning results. The same thing happens if I use Boost and Fuzzy in the other order. I am probably doing something wrong, but am not sure what that would be.
Any help would be appreciated.
Can you provide the full stack trace
The stack trace is as follows:
The simplest case I could produce that generates the error is as follows:
or any of the variations of Boost/Fuzzy/Then chaining on SearchTerm that are shown in the original post.
I know I'm doing something wrong here but but I'm not sure what. nodeName is in the index and if no "fuzziness" is applied then it can be searched successfully.
Thank you for looking into it.
Hi Chris,
Did you ever figure out what the problem was? I am in the same situation where combining SearchCriteria extensions, results in a exception.
Same here, 8 months later and still no one has bothered to answer the initial question.
I have been playing round with the following without getting any exceptions. Just looking at the quality of the results it pulls back
I get this:
Method not found: 'System.String Examine.LuceneEngine.SearchCriteria.LuceneSearchExtensions.Then(Examine.SearchCriteria.IExamineValue, System.String)'.
When I try this:
Been poking around under the hood - the "Then()" extension method has been commented out in recent releases. However, if you want to risk it you can actually just do this:
seeing as Fuzzy and Boost are string extensions, and you seem to be able to clump multiple IExamineValues together as strings.
is working on a reply...