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...
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
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...
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.