[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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 05:12:39
Script start
Timing: Jan 18 2025 05:12:39
Module start 'layout'
Timing: Jan 18 2025 05:12:39
Module start 'content'
Timing: Jan 18 2025 05:12:39
Module end 'content'
Timing: Jan 18 2025 05:12:39
Script end

Main resources:

Total runtime0.0159 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 591.8203152.6563
Module start 'layout' 0.00690.0026 744.476639.5156
Module start 'content' 0.00940.0045 783.992290.6016
Module end 'content' 0.01390.0019 874.593830.2891
Script end 0.0158  904.8828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002414.9987140.0002
Check MTime0.00116.8164140.0001
Mysql Total
Database connection0.00127.568410.0012
Mysqli_queries0.003119.719630.0010
Looping result0.00000.213210.0000
Template Total0.00169.810.0016
Template load0.00085.144210.0008
Template processing0.00074.614310.0007
Override
Cache load0.00053.324910.0005
General
dbfile0.00031.757880.0000
String conversion0.00000.043540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs