Method PutPostingsFormatType
PutPostingsFormatType(Type)
Adds a PostingsFormat type to the Lucene.Net.Codecs.DefaultPostingsFormatFactory.postingsFormatNameToTypeMap, using the name provided in the PostingsFormatNameAttribute, if present, or the name of the codec class minus the "Codec" suffix as the name by default.
Note that if a PostingsFormat with the same name already exists in the map, calling this method will update it to the new type.
Declaration
protected virtual void PutPostingsFormatType(Type postingsFormat)
Parameters
Type | Name | Description |
---|---|---|
Type | postingsFormat | A type that subclasses PostingsFormat. |