AI OnAI Off
Hi Hannes,
Does it work if you create an extension method like this:
public static class GenericMediaExtensions { public static bool IsBlue(this GenericMedia content) { // fancy logic } }
And then use this:
ContentIndexer.Instance.Conventions .ForInstancesOf<GenericMedia>() .ShouldIndex(x => x.IsBlue());
I have an index in dire need of some cleaning due to lack of free space.
I want to index only objects of a specific type with correct value on a property.
I have built an extension method for GenericMedia to filter if it is of a certain type:
Initializing:
This property is used when filtering the search.
Since only a fraction of the indexed Generic Media objects actually have true value on on the property IsBlue, I see no reason to index those who do not.
How do I index only these blue objects?
I was thinking of something along these lines:
But, the syntax is all wrong. So, do any you know how to solve this problem?
Thanks for helping.