Kooboo.Commerce.Search.IndexStore.Index C# (CSharp) Méthode

Index() public méthode

public Index ( object model ) : void
model object
Résultat void
        public void Index(object model)
        {
            var doc = ModelConverter.ToDocument(model);
            var keyFieldName = GetKeyFieldName();
            _writer.DeleteDocuments(new Term(keyFieldName, doc.GetField(keyFieldName).StringValue));
            _writer.AddDocument(doc);
        }