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
Hi,
I'm using the following code :
@using Examine;@using Examine.LuceneEngine.SearchCriteria;@* Get the search term from query string *@@{var searchTerm = Request.QueryString["search"]; var criteria = ExamineManager.Instance.SearchProviderCollection["InnrivefurSearcher"].CreateSearchCriteria(); var filter = criteria .GroupedOr(new string[] {"nodeName","bodyText" },searchTerm.Fuzzy()) .Not() .Field("umbracoNaviHide", "1") .Compile(); }<ul class="search-results">@foreach (var result in ExamineManager.Instance.SearchProviderCollection["InnrivefurSearcher"].Search(filter)) { <li> <span>@result.Score</span> <a href="@umbraco.library.NiceUrl(result.Id)"> @result.Fields["nodeName"] </a> </li> }</ul>
And have the following in my index:
"
AkureyriAEY7.9721.3989.370EgilsstaĆ°irEGS9.1821.39810.580
Akureyri and EgilsstaĆ°ir is listed in search results.
all the prices is listed in search resuts.
AEY and EGS is NOT listed.
Basicly all three letter words like those are not listed.
Anyone have an idea what could be causing this?
Using LUKE, all the above is found using the whitespace analyser.
Best regards,
Stefan
bump
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Examine problems
Hi,
I'm using the following code :
@using Examine;
@using Examine.LuceneEngine.SearchCriteria;
@* Get the search term from query string *@
@{var searchTerm = Request.QueryString["search"];
var criteria = ExamineManager.Instance.SearchProviderCollection["InnrivefurSearcher"].CreateSearchCriteria();
var filter = criteria
.GroupedOr(new string[] {"nodeName","bodyText" },searchTerm.Fuzzy())
.Not()
.Field("umbracoNaviHide", "1")
.Compile();
}
<ul class="search-results">
@foreach (var result in
ExamineManager.Instance.SearchProviderCollection["InnrivefurSearcher"].Search(filter)) {
<li>
<span>@result.Score</span>
<a href="@umbraco.library.NiceUrl(result.Id)">
@result.Fields["nodeName"]
</a>
</li>
}
</ul>
And have the following in my index:
"
Akureyri
AEY
7.972
1.398
9.370
EgilsstaĆ°ir
EGS
9.182
1.398
10.580
"
Akureyri and EgilsstaĆ°ir is listed in search results.
all the prices is listed in search resuts.
AEY and EGS is NOT listed.
Basicly all three letter words like those are not listed.
Anyone have an idea what could be causing this?
Using LUKE, all the above is found using the whitespace analyser.
Best regards,
Stefan
bump
is working on a reply...