private static bool ShouldWeFilterThis(Indexable indexable)
{
if (indexable.Filtering == IndexableFiltering.Never
|| indexable.NoContent)
return false;
if (indexable.Filtering == IndexableFiltering.Always)
return true;
// Our default behavior is to try to filter non-transient file
// indexable and indexables with a specific mime type attached.
if (indexable.IsNonTransient || indexable.MimeType != null)
return true;
return false;
}