[TYPO3-Solr] How to integrate my own indexer?

Yves Poersch ypoersch at jweiland.net
Thu Oct 13 16:40:50 CEST 2011


Hi again,

I don't know whats wrong, I tested all the things you said again (I do it
before I ask the list) ... but nothing is working ...
I renamed all in lower case, class name, class file, all ... nothing is
working ...

Now I send my last "stage":

My Solr Extension:
*typo3conf/ext/solr_extend:*
-
typo3conf/ext/solr_extend/class.tx_solr_extend_indexqueue_seminarsindexer.php
[CODE]
class tx_solr_extend_indexqueue_seminarsindexer extends
tx_solr_indexqueue_Indexer {
     ...
}
[/CODE]

- typo3conf/ext/solr_extend/ext_autoload.php
[CODE]
<?php
$extensionPath = t3lib_extMgm::extPath('solr_extend');
return array(
'tx_solr_extend_indexqueue_seminarsindexer' => $extensionPath .
'class.tx_solr_extend_indexqueue_seminarsindexer.php',
);
?>
[/CODE]
- typo3conf/ext/solr_extend/ext_emconf.php --> STD
- typo3conf/ext/solr_extend/ext_icon.gif --> STD ;)
- typo3conf/ext/solr_extend/ext_localconf.php
[CODE]
<?php if (!defined ('TYPO3_MODE')) die ('Access denied.'); ?>
[/CODE]

TS:
[CODE]
plugin.tx_solr.index.queue.tx_seminars_seminars {
  additionalWhereClause = begin_date >= UNIX_TIMESTAMP()
  indexer = tx_solr_extend_indexqueue_seminarsindexer
  ...
[/CODE]

May somebody see a misstake?

br
Yves

2011/10/13 Ingo Renner <ingo at typo3.org>

> Am 13.10.11 12:11, schrieb Yves Poersch:
>
> Hi Yves,
>
> > message: Class tx_solr_extend_indexqueue_SeminarsIndexer does not
> exist").
>
> That's a message from TYPO3 core, so it *really* can't find your class...
>
> > plugin.tx_solr.index.queue.tx_seminars_seminars {
> >   additionalWhereClause = begin_date >= UNIX_TIMESTAMP()
> >   indexer = tx_solr_extend_indexqueue_SeminarsIndexer
> >   ...
> > }
>
> ok
>
>
> >    - I created a Extension named "solr_extend" and Installed it, there
> will
> >    be a class: tx_solr_extend_indexqueue_SeminarsIndexer that extends
> >    "tx_solr_indexqueue_Indexer" --> don't work
>
> can't work yet
>
> >    - I added a ext_autoload.php to my Ext "solr_extend" --> don't work
>
> should work now if spelled correctly, class name must be lowercased.
>
> >    - I add a new line to the ext_autoload.php of "tx_solr" where I set my
> >    own class --> don't work
>
> not needed as your class should be findable when adding it to your
> extension's autolaoder file.
>
>
> best
> Ingo
>
> --
> Ingo Renner
> TYPO3 Core Developer, Release Manager TYPO3 4.2, Admin Google Summer of
> Code
>
> TYPO3 - Open Source Enterprise Content Management System
> http://typo3.org
>
> Apache Solr for TYPO3 -
> Open Source Enterprise Search meets Open Source Enterprise CMS
> http://www.typo3-solr.com
> _______________________________________________
> TYPO3-project-solr mailing list
> TYPO3-project-solr at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-solr
>



-- 
TYPO3 Hosting, Schulungen, Projekte
Info + Support: 0800 - 8976326 (0800 - TYPO3CM)

jweiland.net - Jochen Weiland
Echterdinger Str. 57
70794 Filderstadt
USt-ID: DE226345594


More information about the TYPO3-project-solr mailing list