Lucene.Net.Util.LuceneTestCase.DefaultCodecSupportsDocsWithField C# (CSharp) Method

DefaultCodecSupportsDocsWithField() public static method

Returns true if the codec "supports" docsWithField (other codecs return MatchAllBits, because you couldnt write missing values before)
public static DefaultCodecSupportsDocsWithField ( ) : bool
return bool
        public static bool DefaultCodecSupportsDocsWithField()
        {
            if (!DefaultCodecSupportsDocValues())
            {
                return false;
            }
            string name = Codec.Default.Name;
            if (name.Equals("Appending") || name.Equals("Lucene40") || name.Equals("Lucene41") || name.Equals("Lucene42"))
            {
                return false;
            }
            return true;
        }