Lot-Aware Search: The Feature Cannabis eCommerce Has Been Missing

Lot-Aware Search: The Feature Cannabis eCommerce Has Been Missing

In cannabis, the product is only part of the buying decision. The real commercial value often lives at the lot level. A product may have multiple active lots, each with different availability, potency, strain details, dates, pricing behavior, and compliance requirements. Two lots can belong to the same product, but still represent very different buying 
decisions.

That is the challenge cannabis commerce platforms need to solve: how do you let buyers search and filter products not only by product information, but also by the specific lots behind those products?

Why Lot-Aware Search Matters

Cannabis buyers do not simply search for products. They search for the characteristics of the available lots. They may be looking for a minimum THC percentage, a specific CBD range, a preferred strain, a harvest window, a particular lot number, or other batch specific information that influences their purchasing decisions.

If those details are hidden inside PDF certificates, spreadsheets, or back-office systems, the buying experience becomes slow and uncertain. Users have to open products one by one, inspect available lots manually, compare lab results, and then decide what to order. 

That creates friction for customers and operational overhead for sellers. To support this buying process, the lot cannot be treated as a simple inventory record attached to a product. It needs to become a first-class part of the commerce model.

Data Model

An effective cannabis commerce platform should separate the product from the lot at the data-model level. The product represents the commercial item shown in the catalog. The lot represents the specific batch of inventory available for that product. This separation preserves a familiar commerce structure while supporting the batch-level detail required in cannabis operations.

This distinction is essential because one product can have many lots, and those lots can change frequently. A standard product search engine is not enough for this structure. Search needs to understand both the product and the lots behind it.

Building a Lot-Aware Elasticsearch Solution

Elasticsearch is widely used to power product search, filtering, sorting, and faceted navigation in modern eCommerce platforms. Cannabis commerce, however, requires much more than traditional product search. The search engine must understand not only product data, but also the lot data behind each product. A lot-aware search engine should be able to answer questions such as:
• “Show me products with available lots above 25% THC.”
• “Show me products where CBD is between 10% and 20%.”
• “Show me all available products for this strain.”

The key idea is to index product data together with structured lot information. Instead of treating the product as one flat search document, the Elasticsearch index includes the lot data needed for filtering and discovery.

That means Elasticsearch can evaluate a product based on the lots connected to it. When a user applies a THC filter, the system does not simply check whether the product has a generic THC value. It checks whether one or more available lots connected to that product match the requested THC range. The same principle applies to CBD, strain values, and other lot-specific filters.

This is especially important for range filters. THC and CBD are numeric values, so buyers need more than a text search. They need filters such as "greater than," "less than," or "between," presented as intuitive range sliders.

For text-based values such as strain or batch number, searchable facets allow buyers to narrow the catalog quickly without opening each product manually. As shown in Figure 1, the storefront displays only products that have at least one lot matching the selected criteria.

Figure 1: Example storefront implementing lot-aware search. Buyers can filter products using batch-specific criteria such as THC percentage, strain, brand, and other searchable attributes.

The Business Value of Lot-Aware Search

Lot-aware search transforms the storefront from a static product catalog into a live commercial view of inventory that is actually available, searchable, and ready to sell.

For customers, this means faster discovery and greater confidence in what they are buying. They can search by the details that matter to them, filter down to relevant lots, and make purchasing decisions without waiting on a sales representative.

For sales teams, it reduces manual lookup work and shortens the path from customer interest to order creation. Instead of checking spreadsheets, lab reports, or back-office systems, the storefront surfaces relevant products and lots directly.

This approach moves lot information from the back office into the buying experience. Instead of being hidden behind the product, batch-specific data becomes part of product discovery, making search more accurate, more useful, and better aligned with how cannabis products are actually bought and sold.

Summary

Search is one of the most critical parts of any commerce experience, and in cannabis, the stakes are higher than in most industries. Buyers are not simply looking for a product. They are looking for a specific batch of inventory with the right potency, strain, and availability. Standard product search cannot answer that question.

Implementing lot-aware search requires indexing strategy decisions: how lot data is structured and how filters are surfaced without overloading the buyer. The result is a storefront that reflects how cannabis products are actually bought: not by catalog entry, but by batch.

That is what makes lot-aware search a genuinely cannabis-native capability; not a customization of a generic commerce platform, but a fundamental rethink of what product discovery means in this industry. 

If you want to see lot-aware search in action, get in touch with the SellStack team for a demo.

Filip Šimek
Platform Lead Engineer, SellStack