Try our conversational search powered by Generative AI!

Find - ExcludeField() function on the ContextIndexer

Vote:
 

Would be nice if the ExcludeFiled() function that is on the SearchClient.Instance.Conventions also existed on the ContentIndexer

#91562
Oct 08, 2014 16:35
Vote:
 
ContentIndexer.Instance.Conventions.ForInstancesOf().ShouldIndex(_ => true);

This is working for me.

#91575
Oct 08, 2014 21:13
Vote:
 

That would just add all ArticlePages no?

What I'm looking for is to ExclueFields from the type like you can do on the SearchClient.

searchInstance.Conventions.ForInstancesOf().ExcludeField(x => x.ChangedBy);

#91579
Oct 08, 2014 22:14
Vote:
 

Oh, I see. Right

#91592
Oct 09, 2014 9:07
This thread is locked and should be used for reference only.
* 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.