volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Find initialization, exclude specifg folder?

Hi,

We want index pdf's from Folder 1 and Folder 4, how we do that ?

Folder 1

-- pdffile1

Folder 2

--SubFolder

-----Pdfflile2

Folder 4

-- pdffile3

Thanks!

#218470
Mar 13, 2020 10:45

This should work (pseudo code)

Conventions.ForInstancesOf<PdfFile>()
                .ShouldIndex(x => 
                     {
var ancestors = _contentLoader.GetAncestors(x.ContentLink);
return !ancestors.Contains(folder2ContentLink);
}

                    );
#218476
Mar 13, 2020 11:21

Thanks, i'll try :)

#218477
Mar 13, 2020 11:23
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.