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

eZ debug

Timing: Jan 18 2025 02:44:43
Script start
Timing: Jan 18 2025 02:44:43
Module start 'content'
Timing: Jan 18 2025 02:44:43
Module end 'content'
Timing: Jan 18 2025 02:44:43
Script end

Main resources:

Total runtime0.0332 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0127 587.9922180.7656
Module start 'content' 0.01270.0096 768.757895.1797
Module end 'content' 0.02230.0108 863.937570.6875
Script end 0.0331  934.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00298.8594120.0002
Check MTime0.00113.3875120.0001
Mysql Total
Database connection0.00123.520210.0012
Mysqli_queries0.005416.301540.0014
Looping result0.00000.117620.0000
Template Total0.010030.210.0100
Template load0.00123.475010.0012
Template processing0.008926.696510.0089
Override
Cache load0.00072.081410.0007
General
dbfile0.004012.1013100.0004
String conversion0.00000.035930.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

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

Time used to render debug report: 0.0002 secs