I use phalcon/forum to create a local project, locally installed elasticsearch1.7.5. I have run scripts/search-tasks.php, I use mysql, I can not search anything,why? thanks in advanced.
This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.
|
Jun '16 |
3 |
188 |
0 |
1: check apache log, no error -> 2:check php log, no error -> 3: check mysql log.. you will isolate where the error happen and it will be easier to help you
<?php
try {
if (isset($body) === true) {
$body = $this->serializer->serialize($body);
}
var_dump($connection->performRequest());exit;
$response = $connection->performRequest(
$method,
$uri,
$params,
$body
);
$connection->markAlive();
$this->retryAttempts = 0;
$data = $this->serializer->deserialize($response['text'], $response['info']);
return array(
'status' => $response['status'],
'data' => $data,
'info' => $response['info'],
);
}
1: check apache log, no error -> 2:check php log, no error -> 3: check mysql log.. you will isolate where the error happen and it will be easier to help you
if apache log doesn't return 404 and the script run well from the cli, I think you have to look how you add elasticsearch class to your phalcon project, do you use universal class loader , composer, include in index.php? are you using namespace in your project?, does php log return such a 'class not found' type error?
Thank you for your serious answer! I check my codes, and in Indexer.php, losing title and content . I insert them into fields array, it's OK! Thank u very much!