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
var criteria = ExamineManager.Instance.SearchProviderCollection[searchClass.GetInternalSearcher()] .CreateSearchCriteria(IndexTypes.Content);
var manager = ExamineManager.Instance; var searcher = manager.SearchProviderCollection[searchClass.GetInternalSearcher()];
string[] words = new string{"car","petrol"};
string[] fields = new string{"nodeTypeAlias","petrol"};
Examine.SearchCriteria.IBooleanOperation filter = null;
foreach (var word in words) { if (filter == null) { filter = criteria.GroupedOr(fields, word); } else { filter = filter.And().GroupedOr(fields, word); } }
var results = searcher.Search(filter.Compile());
I want to get all nodeTypeAlias or get "car" and "bus". How I can do it?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How get all nodeTypeAlias by Examine?
var criteria = ExamineManager.Instance.SearchProviderCollection[searchClass.GetInternalSearcher()] .CreateSearchCriteria(IndexTypes.Content);
var manager = ExamineManager.Instance; var searcher = manager.SearchProviderCollection[searchClass.GetInternalSearcher()];
string[] words = new string{"car","petrol"};
string[] fields = new string{"nodeTypeAlias","petrol"};
Examine.SearchCriteria.IBooleanOperation filter = null;
foreach (var word in words) { if (filter == null) { filter = criteria.GroupedOr(fields, word); } else { filter = filter.And().GroupedOr(fields, word); } }
var results = searcher.Search(filter.Compile());
I want to get all nodeTypeAlias or get "car" and "bus". How I can do it?
is working on a reply...