-
-
Save perploug/ddffc5aca4d3dd25896991b7b1d8c121 to your computer and use it in GitHub Desktop.
examine sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@using Examine.LuceneEngine.SearchCriteria; | |
@{ | |
var criteria = Examine.ExamineManager.Instance | |
.CreateSearchCriteria() | |
.Field("artist", "pnk".Fuzzy()) | |
.And() | |
.Field("title", "wall") | |
.Compile(); | |
var searcher = Examine.ExamineManager.Instance.SearchProviderCollection["ProductSearcher"]; | |
var result = searcher.Search(criteria); | |
var num = result.TotalItemCount; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment