Custom Search Area in C5 v5.4.1.1

Permalink
Hi,

as long as I used version 5.4.0.5, searching in custom areas worked perfectly. I exactly followed the instructions in the documentation and added two custom areas.

In version 5.4.1.1 however, it doesn't work any longer. I guess, the reason for this is that the file "index_search.php" has been changed. I tried the following:

public function run() {
  Cache::disableCache();
  Loader::library('database_indexed_search');
  $is = new IndexedSearch();
  // My custom areas
  $is->addSearchableArea('Custom Area 1');
  $is->addSearchableArea('Custom Area 2');
  if ($_GET['force'] == 1) {
...


However, it didn'work...

I'd be very glad and thankful, if anybody could help me.

Greetings from Germany
Karl

 
jordanlev replied on at Permalink Reply
jordanlev
I don't know much about how the search indexing works in concrete5, but I'm wondering if you've re-run the search index job since the upgrade (in the dashboard "Jobs" page)?

(Sorry if that's super obvious and you've already tried it)
karlertl replied on at Permalink Reply
Yes, I have re-run the search index job. That was not the reason for the problem.

But in the meantime, I found the solution:

Obviously, in 5.4.1.1 it is not necessary to define custom search areas at all. It seems to work "out of the box". So, I deleted the modified index_search.php in the /jobs directory and tried it again. Now, it works as desired! :-)

Nevertheless, thank you very much for your answer!

Karl