Forums / Extensions / eZ Find / Can't re-index existing or new content in Solr

Can't re-index existing or new content in Solr

Author Message

Thanh Nguyen

Monday 10 January 2011 5:12:30 pm

Seems as though around Sept 2010 we were having indexing issue due to the problem mentioned here: http://share.ez.no/forums/extensions/ez-find/indexing-trouble/(language)/eng-GB. I've fixed that. Yes, it's been like that for moths. Now if i run

php extension/ezfind/bin/php/updatesearchindexsolr.php -s admin --clean-all
php extension/ezfind/bin/php/updatesearchindexsolr.php -s manage

the only content that's indexed is ones modified before Sept 2010. The only way I can index articles after that is by update an article or creating a new one in EZP. EZP immediately indexes after I hit the "publish" button.

I've tried disabling forking as per http://share.ez.no/forums/extensions/ez-find/solved-ezfind-solr-issues-not-indexing-old-content. But that didn't help.

I've also tried clearing the ezsearch_object_word_link and ezsearch_word tables and running updatesearchindex.php as suggested in http://share.ez.no/forums/setup-design/re-indexing/(language)/eng-GB. No luck.

Are there another ideas out there? Any logs I should looks at during indexing to tell what it's doing? What is the query it uses to determine which content to index?

ezfind 2.1
Solr Specification Version: 1.4.1

Bertrand Dunogier

Tuesday 11 January 2011 1:26:45 am

Is there any content in ezsearch_object_word_link and ezsearch_word after you index ? The tables should remain empty, as they aren't used by ezfind, but by the default eZ Publish search engine.

You can inspect the standard logs, especially the debug and error ones, eZ Find should use them while indexing.

What platform are you on ?

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

Thanh Nguyen

Wednesday 12 January 2011 4:46:31 pm

Yes, the tables are still empty.

We're running CentOS 5.3 connecting to MySQL 5.1.48. I'm not sure where to look for the logs you speak of. I ran updatesearchindexsolr.php with --debug and --sql switches and didn't see anything very helpful. And /var/log/solr0.log.0 is empty.

Thanh Nguyen

Monday 24 January 2011 6:01:32 pm

It turned out that we had configured eZFind incorrectly and pointed it to the wrong database schema. Problem solved.

Bertrand Dunogier

Tuesday 25 January 2011 1:47:41 am

Problem solved => can you please mark the topic as solved ? thanks :-)

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

eZ debug

Timing: Jan 18 2025 03:08:26
Script start
Timing: Jan 18 2025 03:08:26
Module start 'content'
Timing: Jan 18 2025 03:08:26
Module end 'content'
Timing: Jan 18 2025 03:08:26
Script end

Main resources:

Total runtime0.0241 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.0103 587.9844180.7656
Module start 'content' 0.01030.0055 768.750099.6484
Module end 'content' 0.01580.0083 868.398474.6875
Script end 0.0240  943.0859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002510.4063120.0002
Check MTime0.00114.6355120.0001
Mysql Total
Database connection0.00093.662310.0009
Mysqli_queries0.004418.322340.0011
Looping result0.00000.149320.0000
Template Total0.007932.810.0079
Template load0.00104.019310.0010
Template processing0.006928.771110.0069
Override
Cache load0.00072.890910.0007
General
dbfile0.002811.6880100.0003
String conversion0.00000.033630.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.0001 secs