Aqueduct.SitecoreLib.Search.Crawlers.AdvancedDatabaseCrawler.AddAllFields C# (CSharp) Méthode

AddAllFields() protected méthode

protected AddAllFields ( Lucene.Net.Documents.Document document, System.Item item, bool versionSpecific ) : void
document Lucene.Net.Documents.Document
item System.Item
versionSpecific bool
Résultat void
        protected override void AddAllFields(Document document, Item item, bool versionSpecific)
        {
            Assert.ArgumentNotNull(document, "document");
            Assert.ArgumentNotNull(item, "item");

            foreach (var field in FilteredFields(item))
            {
                var value = ExtendedFieldCrawlerFactory.GetFieldCrawlerValue(field, FieldCrawlers);

                if (string.IsNullOrEmpty(value)) continue;

                var indexType = GetIndexType(field);
                var storageType = GetStorageType(field);
                var vectorType = GetVectorType(field);

                value = IdHelper.ProcessGUIDs(value);
                ProcessField(document, field.Key, value, storageType, indexType, vectorType);

                if (indexType == LuceneField.Index.TOKENIZED)
                {
                    ProcessField(document, BuiltinFields.Content, value, LuceneField.Store.YES, LuceneField.Index.TOKENIZED);
                }
            }

            ProcessDynamicFields(document, item);
        }