Hi all,

today I noticed that my search index is not being updated at each cron run. This is the info on the solr search module page:

The search index is generated by running cron. 52% of the site content has been sent to the server. There are 3099 items left to send.

The server has a 2 mins delay before updates are processed.

Number of documents in index: 4376

No more documents appear indexed than those 4376, even after running multiple crons.

Anyone knows what can be the problem here? Thanks in advance, Simon.

Comments

pwolanin’s picture

There are many possible problems - check the site log and PHP error log for a start. You will have to do more investigation your self or post your user 1 username and password here...

SimonVlc’s picture

Thanks for your answer pwolanin... this seems to be the problem:

Indexing failed on one of the following nodes: 3895, 3938, 3949, 3953, 3961, 3964, 3987, 3995, 4007, 4037, 4047, 4061, 4094, 4116, 4130, 4135, 4147, 4155, 4161, 4163
"500" Status: Internal Server Error

Error 500

HTTP ERROR: 500null

java.lang.ArrayIndexOutOfBoundsException

RequestURI=/solr/updatePowered by Jetty://

Any idea?

jpmckinney’s picture

Category: bug » support

Cron usually fails when there is something about the node that crashes in indexer.

jpmckinney’s picture

Status: Active » Fixed

Are you implementing hook_apachesolr_update_index? In any case, you will want to inspect each of the nodes that the error message mentions. Something about those nodes is causing the code that builds the Solr document to crash. The Java error is ArrayIndexOutOfBoundsException, so I would look for code in your hook_apachesolr_update_index (if you implemented it), that deals with arrays.

pwolanin’s picture

Status: Fixed » Closed (fixed)