/// <summary> Return the offsetGap from the analyzer assigned to field </summary> public override int GetOffsetGap(Lucene.Net.Documents.Fieldable field) { Analyzer analyzer = (Analyzer)analyzerMap[field.Name()]; if (analyzer == null) { analyzer = defaultAnalyzer; } return(analyzer.GetOffsetGap(field)); }
/// <summary> Return the offsetGap from the analyzer assigned to field </summary> public override int GetOffsetGap(Documents.IFieldable field) { Analyzer analyzer = analyzerMap[field.Name] ?? defaultAnalyzer; return(analyzer.GetOffsetGap(field)); }