-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlucene.php
More file actions
25 lines (19 loc) · 766 Bytes
/
lucene.php
File metadata and controls
25 lines (19 loc) · 766 Bytes
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
<?php
require_once 'public/public.php';
$nCoolType = isset($_GET['type'])?$_GET['type']:-1;
$keyWord = isset($_GET['keyword'])?$_GET['keyword']:'';
$bColor = isset($_GET['iscolor'])?$_GET['iscolor']:0;
$nPage = (int)(isset($_GET['page'])?$_GET['page']:0);
$nLimit = (int)(isset($_GET['reqNum'])?$_GET['reqNum']:1000);
if (empty($keyWord)){
echo get_rsp_result(false, 'keyword is null');
exit;
}
require_once 'configs/config.php';
require_once("tasks/CoolShow/CoolShowSearch.class.php");
$coolshow = new CoolShowSearch();
$result = $json_result = $coolshow->searchLucene($nCoolType, $keyWord, $bColor, $nPage, $nLimit);
echo $result;
require_once 'tasks/Records/RecordTask.class.php';
$rt = new RecordTask();
$rt->saveLucene($nCoolType);