First round at refactoring Search.controller.php

Signed-off-by: emanuele <emanuele45@gmail.com>
Fix issues reported by scrutinizer

Signed-off-by: emanuele <emanuele45@gmail.com>
Couple of stupid bugs

Signed-off-by: emanuele <emanuele45@gmail.com>
Errors

Signed-off-by: emanuele <emanuele45@gmail.com>
Search class docs

Signed-off-by: emanuele <emanuele45@gmail.com>
Unused search function

Signed-off-by: emanuele <emanuele45@gmail.com>
Try to simplify a tiny bit logic

Signed-off-by: emanuele <emanuele45@gmail.com>
SearchAPI stored in a private var into search.class

Signed-off-by: emanuele <emanuele45@gmail.com>
Some more splitting of Search_Class methods

Signed-off-by: emanuele <emanuele45@gmail.com>
Broken function _searchAPI to prepareWord

Signed-off-by: emanuele <emanuele45@gmail.com>
Random tweaks and extracted another function from search controller

Signed-off-by: emanuele <emanuele45@gmail.com>
Aggregate all the queris to insert data into log_search_results into a function

Signed-off-by: emanuele <emanuele45@gmail.com>
Talk about minutes and write seconds is not easy to understand

Signed-off-by: emanuele <emanuele45@gmail.com>
Merge pull request #1504 from emanuele45/love_for_search

First round at refactoring Search.controller.php