Forums / Extensions / eZ Find / [SOLVED] ezFind (SOLR) issues - not indexing (old content)

[SOLVED] ezFind (SOLR) issues - not indexing (old content)

Author Message

Ivan Švogor

Thursday 30 December 2010 4:53:58 am

Hello!

If you have an issue with ezFind where you cannot index old content, or you clear index, re-index or it does not index anything here is one solution. I had similar problem, and found few topics but no answers (on this forum)

There are some bugs in ezFind, and this particular problem with (bad, or non-indexing) is related with something called "fork" (I'm not sure weather it has something to do with treading).

(bug tracker, forum question)

So the solution that worked for us was the following, simply don't use forks :-)

You do this in updatesearchindexsolr.php , function protected function runMain() line 276, you need to add this line:

...
 $useFork = ( function_exists( 'pcntl_fork' ) &&
                     function_exists( 'posix_kill' ) );
                     
        $useFork = false; // <-- this line     
                     
        if ( $useFork )
        {
...

And this actually works. Content is indexing and the search works fine. So if you have this issue, good luck in solving it!

Cheers