115047ee
tangwang
为一个租户灌入测试数据;实例的启动...
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>电商搜索引擎 - SearchEngine Demo</title>
<link rel="stylesheet" href="/static/css/style.css">
</head>
<body>
<div class="container">
<header>
<h1>🔍 电商搜索引擎</h1>
<p class="subtitle">E-Commerce Search Engine - Customer1 Demo</p>
</header>
<div class="search-section">
<div class="search-box">
<input type="text" id="searchInput" placeholder="输入搜索关键词... (支持中文、英文、俄文)"
onkeypress="handleKeyPress(event)">
<button onclick="performSearch()" class="search-button">搜索</button>
</div>
<div class="search-options">
<label><input type="checkbox" id="enableTranslation" checked> 启用翻译</label>
<label><input type="checkbox" id="enableEmbedding" checked> 启用语义搜索</label>
<label><input type="checkbox" id="enableRerank" checked> 启用自定义排序</label>
<select id="resultSize">
<option value="10">10条结果</option>
<option value="20">20条结果</option>
<option value="50">50条结果</option>
</select>
</div>
<div class="search-examples">
<strong>搜索示例:</strong>
<button class="example-btn" onclick="setQuery('芭比娃娃')">芭比娃娃</button>
<button class="example-btn" onclick="setQuery('toy AND (barbie OR doll)')">布尔查询</button>
<button class="example-btn" onclick="setQuery('消防')">消防</button>
<button class="example-btn" onclick="setQuery('fire control set')">英文查询</button>
</div>
</div>
<div id="loading" class="loading" style="display: none;">
<div class="spinner"></div>
<p>搜索中...</p>
</div>
<div id="results" class="results-section"></div>
<div id="queryInfo" class="query-info"></div>
</div>
<footer>
|