Hi everyone. I'm new as umbraco developer. But I tried to search some document types on the same level that Home or at the same level at a DocumentType but quering using examine i didn't receive 0 documents as a result.
I need to search some document type that is located in the root node or inside of a documentType
this is the criteria that i used
var provider = ExamineManager.Instance;
var criteria = provider.CreateSearchCriteria(UmbracoExamine.IndexTypes.Content);
Examine quering by level
Hi everyone. I'm new as umbraco developer. But I tried to search some document types on the same level that Home or at the same level at a DocumentType but quering using examine i didn't receive 0 documents as a result.
I need to search some document type that is located in the root node or inside of a documentType
this is the criteria that i used
var provider = ExamineManager.Instance;
var criteria = provider.CreateSearchCriteria(UmbracoExamine.IndexTypes.Content);
//At same level that home (root level)
var filter = criteria
.Field("level", "1")
.And()
.Field("nodeTypeAlias", "background")
.Compile();
is working on a reply...