Product Search
Search Overview
Section titled “Search Overview”The DealAI.lt product search system provides fast, relevant search results across 60,000+ products using Elasticsearch with Lithuanian language support.
Search Features
Section titled “Search Features”Full-Text Search
Section titled “Full-Text Search”- Multi-field search (title, brand, description, SKU)
- Lithuanian language analysis
- Fuzzy matching for typos
- Relevance scoring
Filters
Section titled “Filters”- Category: Hierarchical category filtering
- Price Range: Min/max price filtering
- Brand: Multi-select brand filter
- Availability: In stock, out of stock
Results
Section titled “Results”- Highlighting of matched terms
- Pagination (20 results per page)
- Sort options (relevance, price, newest)
- Product preview cards
Implementation
Section titled “Implementation”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]);Next Steps
Section titled “Next Steps”- Elasticsearch Integration - Search engine details
- Price History - Price tracking