Hi, ich nutze ElasticSearch und wenn ich
bin/console sw:es:index:populate
durchführe bekomme ich folgendes Ergebnis:
## Indexing shop Demoshop ##
Indexing properties
90/90 [============================] 100% 1 sec/1 sec
Evaluation:
Total: 309 items
Error: 0 items
Success: 89 items
Indexing products
9116/9116 [============================] 100% 11 secs/11 secs
Evaluation:
Total: 9116 items
Error: 7 items
Success: 9109 items
Meine Frage, Was passiert bei indexing properties und indexing products genau? Und wie kann man die 7 Errors beseitigen?
In es_production-2020-01-28.log steht folgendes auszugweise:
{"index":{"_index":"sw_shop1_product_20200128160047","_type":"product","_id":"10011185","_version":1,"result":"created","_shards":{"total":1,"successful":1,"failed":0},"_seq_no":8665,"_primary_term":1,"status":201}},
oder (der Artikel ist in der Datenbank richtig datiert, aber im Backend wird er falsch angezeigt:
{"index":{"_index":"sw_shop1_product_20200128160047","_type":"product","_id":"10011223","status":400,"error":{"type":"mapper_parsing_exception","reason":"failed to parse field [formattedReleaseDate] of type [date] in document with id '10011223'. Preview of field's value: '-0001-11-30'","caused_by":{"type":"illegal_argument_exception","reason":"failed to parse date field [-0001-11-30] with format [yyyy-MM-dd]","caused_by":{"type":"date_time_parse_exception","reason":"Text '-0001-11-30' could not be parsed: Invalid value for YearOfEra (valid values 1 - 999999999/1000000000): -1","caused_by":{"type":"date_time_exception","reason":"Invalid value for YearOfEra (valid values 1 - 999999999/1000000000): -1"}}}}}},
oder:
{"index":{"_id":"10011188"}},"[object] (Shopware\\Bundle\\ESIndexingBundle\\Struct\\Product: {\"formattedCreatedAt\":\"2020-01-24\",\"formattedUpdatedAt\":\"2020-01-24\",\"formattedReleaseDate\":null,\"properties\":[{\"id\":6415,\"name\":\"3+\",\"media\":null,\"position\":0,\"attributes\":[]},{\"id\":6479,\"name\":\"32\",\"media\":null,\"position\":0,\"attributes\":[]}],\"categoryIds\":[\"12\",\"3\",\"57\"],\"calculatedPrices\":{\"EK_1\":{\"calculatedPrice\":126.95,\"calculatedReferencePrice\":null,\"calculatedPseudoPrice\":0,\"rule\":null,\"attributes\":[]},\"H_1\":{\"calculatedPrice\":126.95,\"calculatedReferencePrice\":null,\"calculatedPseudoPrice\":0,\"rule\":null,\"attributes\":[]}},\"configuration\":[],\"visibility\":[],\"availability\":[],\"availableCombinations\":null,\"listingVariationPrices\":[],\"filterConfiguration\":[],\"manualSorting\":[],\"name\":\"XXXXXXXXXXXXX Grosses Set\",\"stock\":0,\"shortDescription\":\"\",\"longDescription\":\"XXXXXXXXXXXXX\",\"shippingTime\":null,\"shippingFree\":false,\"closeouts\":false,\"hasProperties\":true,\"createdAt\":null,\"updatedAt\":null,\"keywords\":\"\",\"metaTitle\":\"\",\"allowsNotification\":false,\"additional\":\"\",\"minStock\":0,\"height\":0,\"width\":0,\"length\":0,\"weight\":0,\"ean\":\"XXXXXXXXXXXXX\",\"highlight\":false,\"sales\":0,\"hasConfigurator\":false,\"hasEsd\":false,\"isPriceGroupActive\":false,\"blockedCustomerGroupIds\":[],\"manufacturerNumber\":\"53.033.887\",\"template\":\"\",\"cheapestPriceRule\":null,\"cheapestUnitPrice\":null,\"unit\":{\"id\":null,\"name\":null,\"unit\":null,\"purchaseUnit\":null,\"referenceUnit\":null,\"packUnit\":\"\",\"minPurchase\":1,\"maxPurchase\":null,\"purchaseStep\":null,\"attributes\":[]},\"tax\":{\"id\":5,\"name\":\"7,7\",\"tax\":7.7,\"attributes\":[]},\"manufacturer\":{\"id\":78,\"name\":\"BRIO\",\"description\":null,\"metaTitle\":null,\"metaDescription\":null,\"metaKeywords\":null,\"link\":\"\",\"coverFile\":null,\"coverId\":null,\"coverMedia\":null,\"attributes\":[]},\"priceGroup\":null,\"states\":[],\"esd\":null,\"voteAverage\":null,\"hasAvailableVariant\":true,\"customerPriceCount\":\"1\",\"fallbackPriceCount\":\"1\",\"mainVariantId\":11222,\"isMainVariant\":true,\"categories\":[],\"listingPrice\":null,\"id\":11209,\"variantId\":11222,\"number\":\"10011188\",\"attributes\":{\"core\":{\"id\":\"11222\",\"articledetailsID\":\"11222\",\"attr1\":\"\",\"attr2\":\"\",\"attr3\":\"\",\"attr4\":\"\",\"attr5\":false,\"attr6\":\"\",\"attr7\":\"\",\"attr8\":\"\",\"attr9\":\"\",\"attr10\":\"\",\"attr11\":\"\",\"attr12\":\"\",\"attr13\":\"\",\"attr14\":\"\",\"attr15\":\"\",\"attr16\":\"\",\"attr17\":\"\",\"attr18\":\"\",\"attr19\":\"\",\"attr20\":\"\"}}})",
Was bedeutet das?
Danke und Gruss