Hi!
We are using this query:
var result = query
.FilterOnCurrentMarket()
.FilterForVisitor(currentContent.LanguageBranch())
.Skip((formModel.Page - 1) * pageSize)
.Take(pageSize)
.ApplyBestBets()
.StaticallyCacheFor(TimeSpan.FromMinutes(10))
.GetContentResult();
Works perfect on a new built index running the EPiServer Find Content Indexing Job
In the index I find this:
"Markets": [
{"Value$$string": "BASE","$type": "Mediachase.Commerce.MarketId, Mediachase.Commerce"
},
{"Value$$string": "DA","$type": "Mediachase.Commerce.MarketId, Mediachase.Commerce"
},
{"Value$$string": "DE","$type": "Mediachase.Commerce.MarketId, Mediachase.Commerce"
},
{"Value$$string": "DEFAULT","$type": "Mediachase.Commerce.MarketId, Mediachase.Commerce"
},
{"Value$$string": "EN","$type": "Mediachase.Commerce.MarketId, Mediachase.Commerce"
},
{"Value$$string": "ES","$type": "Mediachase.Commerce.MarketId, Mediachase.Commerce"
},
{"Value$$string": "FI","$type": "Mediachase.Commerce.MarketId, Mediachase.Commerce"
},
{"Value$$string": "FR","$type": "Mediachase.Commerce.MarketId, Mediachase.Commerce"
},
{"Value$$string": "KO","$type": "Mediachase.Commerce.MarketId, Mediachase.Commerce"
},
{"Value$$string": "NL","$type": "Mediachase.Commerce.MarketId, Mediachase.Commerce"
},
{"Value$$string": "NO","$type": "Mediachase.Commerce.MarketId, Mediachase.Commerce"
},
{"Value$$string": "PL","$type": "Mediachase.Commerce.MarketId, Mediachase.Commerce"
},
{"Value$$string": "SV","$type": "Mediachase.Commerce.MarketId, Mediachase.Commerce"
}
],
So the FilterOnCurrentMarket works perfect.
If I add a category on a product/variant from Episerver GUI all items in the added category are pushed to the index without the "Markets" data.
This makes the category listing on our site all empty, nothing is returned.
Removing both these filters:
.FilterOnCurrentMarket()
.FilterForVisitor(currentContent.LanguageBranch())
Makes the product list work just fine again. And I have to remove both. Keeping either one of them makes the list empty.
For some reason the Markets (and other info) are not pushed to the index when triggered by a publish in the Episerver GUI.
This is really urgent because category listings are suddenly all empty.
I cannot see this as anything other than a bug since the "Markets" data are published when the indexing job is run.
/Kristoffer
[Commerce 11.2.6]
[Episerver.Find.Commercer 10.0.1]