Lucene.Net.Index.SegmentInfo.HasSeparateNorms C# (CSharp) Method

HasSeparateNorms() private method

private HasSeparateNorms ( ) : bool
return bool
        internal bool HasSeparateNorms()
        {
            return GetAttribute(Lucene3xSegmentInfoFormat.NORMGEN_KEY) != null;
        }

Usage Example

示例#1
0
        /// <summary>Returns true if this single info is optimized (has no
        /// pending norms or deletes, is in the same dir as the
        /// writer, and matches the current compound file setting
        /// </summary>
        private bool IsOptimized(SegmentInfo info, IState state)
        {
            bool hasDeletions = writer.NumDeletedDocs(info, state) > 0;

            return(!hasDeletions && !info.HasSeparateNorms(state) && info.dir == writer.Directory &&
                   (info.GetUseCompoundFile(state) == useCompoundFile || internalNoCFSRatio < 1.0));
        }
All Usage Examples Of Lucene.Net.Index.SegmentInfo::HasSeparateNorms