Class FileIndexBuilder
- Namespace
- Dynamicweb.Content.Files
- Assembly
- Dynamicweb.dll
[AddInName("File Index Builder")]
public class FileIndexBuilder : IndexBuilderBase, IIndexBuilder
- Inheritance
-
FileIndexBuilder
- Implements
- Inherited Members
Properties
DefaultSettings
Default settings
public override IDictionary<string, object> DefaultSettings { get; }
Property Value
Recursive
[AddInParameterGroup("File Index Builder Settings")]
[AddInParameter("Recursive")]
[AddInLabel("Recursive")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "Explanation=Controls whether subfolder content is indexed, by default it is;")]
public bool Recursive { get; set; }
Property Value
SkipDynamicwebMetadata
[AddInParameterGroup("File Index Builder Settings")]
[AddInParameter("SkipDynamicwebMetadata")]
[AddInLabel("Skip Dynamicweb metadata")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "")]
public bool SkipDynamicwebMetadata { get; set; }
Property Value
SkipMetadata
[AddInParameterGroup("File Index Builder Settings")]
[AddInParameter("SkipMetadata")]
[AddInLabel("Skip metadata")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "Explanation=Skips metadata like EXIF, XMP, IPTC on image files;")]
public bool SkipMetadata { get; set; }
Property Value
StartFolder
[AddInParameterGroup("File Index Builder Settings")]
[AddInParameter("StartFolder")]
[AddInLabel("Start folder")]
[AddInParameterEditor(typeof(TextParameterEditor), "infoText=Defaults to 'Files'; Explanation=Controls which folder to index;")]
public string StartFolder { get; set; }
Property Value
SupportedActions
List of supported actions
public override IEnumerable<string> SupportedActions { get; }
Property Value
Methods
Build(IIndexWriter, Tracker)
Builds the index to the specified writer
public override void Build(IIndexWriter writer, Tracker tracker)
Parameters
writer
IIndexWriterThe indexing writer
tracker
TrackerThe tracker instance to log what happens
GetFields()
Defines GetFields required operation
public override IEnumerable<FieldDefinitionBase> GetFields()