[TYPO3-Solr] Installation

Xaver Maierhofer xaver.maierhofer at xwissen.info
Tue Nov 13 16:32:05 CET 2012


Hi again,

I got something new in reports

Querying Solr using GET
class.tx_solr_solrservice.php, line 230


query url	http://localhost:8080/solr/core_en/admin/luke?numTerms=0&wt=json
response	
*_response 	Apache_Solr_HttpTransport_Response Object
(
[_statusCode:Apache_Solr_HttpTransport_Response:private] => 404
[_statusMessage:Apache_Solr_HttpTransport_Response:private] => Not Found
[_mimeType:Apache_Solr_HttpTransport_Response:private] => text/html
[_encoding:Apache_Solr_HttpTransport_Response:private] => utf-8
[_responseBody:Apache_Solr_HttpTransport_Response:private] =>
)

*_isParsed 	
*_parsedData 	
*_createDocuments 	1
*_collapseSingleValueArrays 	1
exception	exception 'Apache_Solr_HttpTransportException' with message ''404' 
Status: Not Found' in 
/var/www/clients/clientX/webX/web/typo3conf/ext/solr/lib/SolrPhpClient/Apache/Solr/Service.php:340
Stack trace:
#0 
/var/www/clients/clientX/webX/web/typo3conf/ext/solr/classes/class.tx_solr_solrservice.php(210): 
Apache_Solr_Service->_sendRawGet('http://localhos...', false)
#1 
/var/www/clients/clientX/webX/web/typo3conf/ext/solr/classes/class.tx_solr_solrservice.php(319): 
tx_solr_SolrService->_sendRawGet('http://localhos...')
#2 
/var/www/clients/clientX/webX/web/typo3conf/ext/solr/report/class.tx_solr_report_indexreport.php(67): 
tx_solr_SolrService->getLukeMetaData()
#3 /usr/share/typo3/typo3_src-4.7-git/typo3/sysext/reports/mod/index.php(181): 
tx_solr_report_IndexReport->getReport()
#4 /usr/share/typo3/typo3_src-4.7-git/typo3/sysext/reports/mod/index.php(121): 
tx_reports_Module->renderModuleContent()
#5 /usr/share/typo3/typo3_src-4.7-git/typo3/sysext/reports/mod/index.php(277): 
tx_reports_Module->main()
#6 /usr/share/typo3/typo3_src-4.7-git/typo3/mod.php(45): 
require('/usr/share/typo...')
#7 {main}



if I call the URL over tunnel to 8080 or on server with file_get_contents:

http://localhost:8080/solr/core_en/admin/luke?numTerms=0&wt=json
{"responseHeader":{"status":0,"QTime":23},"index":
{"numDocs":0,"maxDoc":0,"version":1352817364634,"segmentCount":0,"current":true,"hasDeletions":false,"directory":"org.apache.lucene.store.MMapDirectory:org.apache.lucene.store.MMapDirectory@/opt/solr-
tomcat/solr/typo3cores/data/core_en/index 
lockFactory=org.apache.lucene.store.NativeFSLockFactory at 4369a50b","lastModified":"2012-11-13T14:36:04Z"},"fields":
{},"info":{"key":
{"I":"Indexed","T":"Tokenized","S":"Stored","M":"Multivalued","V":"TermVector 
Stored","o":"Store Offset With TermVector","p":"Store Position With 
TermVector","O":"Omit Norms","F":"Omit Term Frequencies & Positions","P":"Omit 
Positions","L":"Lazy","B":"Binary","f":"Sort Missing First","l":"Sort Missing 
Last"},"NOTE":"Document Frequency (df) is not updated when a document is 
marked for deletion.  df values include deleted documents."}}

Strange 404 error in Log?!

Gruß
Xaver

On Tuesday 13 November 2012 12:10:27 Jigal van Hemert wrote:
> Hi,
> 
> On 13-11-2012 11:53, Xaver Maierhofer wrote:
> > Hi,
> > 
> > I missed the session on TYPO3 camp in Munich. But I want to setup a solr
> > search and tried a lot of things, but nothing was working.
> > (Notice: I'm no tomcat fan)
> > 
> > Tested on/with:
> > 
> > Environment(s):
> > 2x Debian 64 bit squeeze
> > 
> > Installation scripts (tried):
> > - debian without tomcat (stable - preferred)
> > - with tomcat (stable/git)
> > - multisetup (not needed on first site) (stable)
> > 
> > Java
> > Primary Sun, but I would prefer OpenJDK more (It isn't recommended)
> 
> Did you try to run on of the install scripts in resources/shell in the
> solr extension? It installs tomcat and solr for you, configures them for
> use with the solr extension.
> The only thing you should install are the OS and Java.
> 
> http://forge.typo3.org/projects/extension-solr/wiki/Setup_on_*NIX
> gives you some information on how to stop/start Tomcat, how to autostart
> it on Debian, etc.
> However, the install script should be able to download and configure
> Tomcat and Solr for you.



More information about the TYPO3-project-solr mailing list