Commit c004b11b authored by clone's avatar clone

1

parent 6d46abe9
...@@ -34,12 +34,13 @@ class SearchService ...@@ -34,12 +34,13 @@ class SearchService
*/ */
public function searchByKeyword($params, $page_no, $page_size, $agentId) public function searchByKeyword($params, $page_no, $page_size, $agentId)
{ {
$start_time = $params["start_time"] . "000"; $start_time = $params["start_time"] . "000";
$end_time = $params["end_time"] . "000"; $end_time = $params["end_time"] . "000";
$start_index = ($page_no - 1) * $page_size;
$searchClient = new SearchClient($this->client); $searchClient = new SearchClient($this->client);
$condition = new SearchParamsBuilder(); $condition = new SearchParamsBuilder();
$condition->setStart($page_no); $condition->setStart($start_index);
$condition->setHits($page_size); $condition->setHits($page_size);
$condition->setAppName("tl_estate"); $condition->setAppName("tl_estate");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment