Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hey,
Using the following code to query examine, but any reserved words (if, and, etc.) are breaking the search
var searchStr = Request.QueryString["search"];
var criteria = ExamineManager.Instance
.SearchProviderCollection["GeneralSearcher"] .CreateSearchCriteria(UmbracoExamine.IndexTypes.Content);
var filter = criteria
.GroupedOr(new string[] {"nodeName,bodyText" }, searchStr)
.Not()
.Field("umbracoNaviHide", "1")
.Compile();
Do I need to escape these first and if so what's the full list and the best way?
Cheers
Rich
To the top...
Hi,
Did you ever find a solution to this..my search is also breaking when I search for IT..
Maybe this is fixed in the latest version of Examine. You can download it here: http://examine.codeplex.com/releases/view/77362.
Jeroen
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Reserved words breaking examine search
Hey,
Using the following code to query examine, but any reserved words (if, and, etc.) are breaking the search
var searchStr = Request.QueryString["search"];
var criteria = ExamineManager.Instance
.SearchProviderCollection["GeneralSearcher"]
.CreateSearchCriteria(UmbracoExamine.IndexTypes.Content);
var filter = criteria
.GroupedOr(new string[] {"nodeName,bodyText" }, searchStr)
.Not()
.Field("umbracoNaviHide", "1")
.Compile();
Do I need to escape these first and if so what's the full list and the best way?
Cheers
Rich
To the top...
Hi,
Did you ever find a solution to this..my search is also breaking when I search for IT..
Maybe this is fixed in the latest version of Examine. You can download it here: http://examine.codeplex.com/releases/view/77362.
Jeroen
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.