public static Query GetDeleteFolderQuery(int portalId, string folderPath) { var selection = new TermQuery(new Term(LuceneMappingUtils.FolderField, folderPath.TrimEnd('/'))); return(new FilteredQuery(selection, LuceneMappingUtils.GetTypeTenantFilter(ItemTypeValue, portalId.ToString()))); }
public static Query GetDeleteQuery(LuceneIndexItem data) { var selection = new TermQuery(new Term(LuceneMappingUtils.GetIndexFieldName(), LuceneMappingUtils.GetIndexFieldValue(data))); return(new FilteredQuery(selection, LuceneMappingUtils.GetTypeTenantFilter(ItemTypeValue, data.PortalId.ToString()))); }