[Typo3] API for indexed search

Jan Bednarik info at bednarik.org
Wed Sep 7 19:57:53 CEST 2005


> $this->ind = t3lib_div::makeInstance("tx_indexedsearch_indexer");
> 
> $this->ind->pObj = $GLOBALS['TSFE'];
> 
> $this->ind->init();
> 
> $this->ind->indexRegularDocument($link);

That's almost what I have

$this->ind = t3lib_div::makeInstance("tx_indexedsearch_indexer");
$this->ind->hook_indexContent($GLOBALS['TSFE']);
$this->ind->init();
$this->ind->initializeExternalParsers(); 
$this->ind->indexRegularDocument($pathtoafile,TRUE);

But it doesn't work very well. When I enter a page, it gets indexed, 
after a click on a link, I call a script, which containt these lines 
above and the page is indexed again, but with no content, just a title. 
However, the original indexed content doesn't disappear.

--
Jan Bednarik



More information about the TYPO3-english mailing list