query)}&limit=20&data_size=${dataSize}&strategy=${strategy}`);
                const data = await response.json();

                if (response.ok) {
                    displayResults(data);
                    updateStats(data.performance);
                } else {
                    showError(data.error || 'Search failed');
                }

            } catch (error) {
                console.error('Search error:', error);
                showError('Network error occurred');
            } finally {
