[TYPO3-english] powersearch tutorial

Richard Jäger richard_j at arcor.de
Wed May 27 14:31:37 CEST 2009


Hi,

right now im using indexed_search but its more than slow and i got 6 
"websites" in one typo3, so i think you can imagine how it works :D

So my idea is to use another search engine, like mnogosearch or 
powersearch. mnogosearch sounds nice, but i dont understand the 
documentation and i also got no "opt" folder.

Now i tried to use powersearch. I installed the 3 of them powersearch, 
powersearchui and powersearchindexlucene.

I can see in my frontend the searchform of UI. But in the folder 
/typo3temp/powersearchindexlucene there should be the index stored. But 
its just because i dont know how to index my site with 
powersearchindexlucene :D

"The indexer is run via php CLI call.

Before running the command a CLI be-user named 
"_CLI_powersearchindexlucene" has to be created. Admin rights are not 
required. Password has to be something secure, so nobody can use the 
user. It is not required for the CLI script.

By default the index files are placed into 
typo3temp/powersearchindexlucene/* so write permissions have to granted 
to the cli user.

Example: "php 
/var/www/site/htdocs/typo3conf/ext/powersearchindexlucene/cli/indexer.php"The 
absolute script path has to be used.

It is recommended to use a crontab entry to recreate the index i.e. once 
a day at night."


I created manually a user named "_CLI_powersearchindexlucene" and i got 
in my webinterface a cronjob tab. I tried to run there indexer.php, but 
im getting an error:

X-Powered-By: PHP/4.4.8
Content-type: text/html

<br />
<b>Parse error</b>:  syntax error, unexpected '{' in
<b>/drgupta/typo3conf/ext/powersearchindexlucene/cli/indexer.php</b>
on line <b>34</b><br />

and on line 34:
try {
	$extConf = 
unserialize($GLOBALS["TYPO3_CONF_VARS"]["EXT"]["extConf"]["powersearchindexlucene"]);

	if (!is_array($extConf)) {
		throw new Exception('Invalid configuration for extension');
	}


So guys, you would really really help me a lot :)

Regards,
Richard


More information about the TYPO3-english mailing list