Skip to content

Product Search

The DealAI.lt product search system provides fast, relevant search results across 60,000+ products using Elasticsearch with Lithuanian language support.

  • Multi-field search (title, brand, description, SKU)
  • Lithuanian language analysis
  • Fuzzy matching for typos
  • Relevance scoring
  • Category: Hierarchical category filtering
  • Price Range: Min/max price filtering
  • Brand: Multi-select brand filter
  • Availability: In stock, out of stock
  • Highlighting of matched terms
  • Pagination (20 results per page)
  • Sort options (relevance, price, newest)
  • Product preview cards

Page Template: page-search.php

Search Query:

$results = elasticsearch_search($_GET['q'], [
'category' => $_GET['category'] ?? null,
'min_price' => $_GET['min_price'] ?? null,
'max_price' => $_GET['max_price'] ?? null,
'brand' => $_GET['brand'] ?? null,
'page' => $_GET['page'] ?? 1
]);