[Solved!!](Again) The search engine is not working
Permalink 2 users found helpful
Dear all,
I've successfully installed C5 5.3.3.1 and customized my themes with a lot of fun.
Unfortunately, like many other users here, the search engine doesn't return me any results.
1)I added in the index_search.php the line:
$is->addSearchableArea('Content');
where 'Content' is the name of areas with contents inside of pages
2)uploaded index_search.php in his original path and/or also in the override path
3)after every modification to files i ran again the indexing job
4)of course I have a search page with a searck block configured to search 'everywhere'
the result is always: 'There were no results found. Please try another keyword or phrase.'
I've readed and readed again everything on the forum. Nothing. Does anyone that *really* runs C5 search engine and it works, can please tell me what he/she did to have success? Please don't just give hypothetic theoric suggestions.
Thank you. ---- I love C5
I've successfully installed C5 5.3.3.1 and customized my themes with a lot of fun.
Unfortunately, like many other users here, the search engine doesn't return me any results.
1)I added in the index_search.php the line:
$is->addSearchableArea('Content');
where 'Content' is the name of areas with contents inside of pages
2)uploaded index_search.php in his original path and/or also in the override path
3)after every modification to files i ran again the indexing job
4)of course I have a search page with a searck block configured to search 'everywhere'
the result is always: 'There were no results found. Please try another keyword or phrase.'
I've readed and readed again everything on the forum. Nothing. Does anyone that *really* runs C5 search engine and it works, can please tell me what he/she did to have success? Please don't just give hypothetic theoric suggestions.
Thank you. ---- I love C5
Many thanks - this really does work and should be a 'sticky' in the forum so that everyone can benefit. To clarify this is the fix for searching blocks that you have created with non-standard name(i.e. names other than Main, Content). These php files are in the concrete/libraries folder.
I've added my content's area name in the database_indexed_search.php and indexed_search.php:
from this:
private $searchableAreaNames = array('Main Content', 'Main');
to this:
private $searchableAreaNames = array('Main Content', 'Main', 'Content');
Run the indexing job and pay me a beer :-)
frank