Every test was green and search found nothing: the state transition nobody wrote

A puzzled shopkeeper looks at an order ticket for a coffee pot in front of empty shelves, while the back room behind a door tagged draft is full of coffee pots and mugs, and the publish hook on his stamp rack is the only empty one.

Every product existed and none could be found. The true story of a missing state transition in a .NET shop, and how to find yours in five minutes.

Your build is green and your shop’s search is broken: NDCG as a CI gate in .NET

A shopkeeper looks at two trays on his counter: an empty one beside an order for women's running shoes, and a full one with running shoes graded 3, a t-shirt graded 1 and a backpack graded 0, under a blackboard that reads NDCG@10, never below 0.80.

Test ecommerce search like code: an NDCG@10 gate in CI for .NET and Elasticsearch, and the bug it found on its first run.