[TYPO3-Solr] Index queue with pages and tt_news

Rik Willems rik at actiview.nl
Tue Aug 16 09:44:33 CEST 2011


Hi Ingo,

On 15-8-2011 18:01, Ingo Renner wrote:

> you need to update the TYPO3 Plugin for Solr. In your Solr installation
> is a directoy typo3lib, it contains v1.1.0, just remove that and put
> v1.2.0 into that directory. Don't forget to restart Tomcat.
>

This morning I looked at your suggestion and found I already have 
version 1.2.0 on the server.

For some reason it stopped indexing pages now completely, still looking 
at why. It does tt_news though.

Having a second look at the error log made me notice the r: thing. In 
tx_solr_indexqueue_indexer.php there is:
	protected function getAccessRootline(tx_solr_indexqueue_Item $item) {
		$accessRestriction = '0';
		$itemRecord        = $item->getRecord();

		if 
(isset($GLOBALS['TCA'][$item->getType()]['ctrl']['enablecolumns']['fe_group'])) 
{
			$accessRestriction = 
$itemRecord[$GLOBALS['TCA'][$item->getType()]['ctrl']['enablecolumns']['fe_group']];
		}

		return 'r:' . $accessRestriction;
	}

When it looks a record that has fe_group enabled it fetches the value 
from the database. When the value is empty it returns 'r:'. Solr seems 
to expect an integer. Would it expect 'r:0' in that case?

I think I'm going to redo my setup as this is leading me nowhere... Keep 
you posted.

Cheers! Rik


More information about the TYPO3-project-solr mailing list