[TYPO3-Solr] Sending XML to Update-RequestHandler

Michael Huber mh at mculm.de
Fri Jun 6 08:48:55 CEST 2014


Hi,

I'm successfully using Solr with TYPO3 solr-extension, the schema.xml is 
named "tx_solr-2-8-0--20120925". Since page indexing by solr extension 
is working without any problems, I'd like to add some external content 
which can't be reached by solr-extension.

Here is the result of a simple query. I already tried to change the XML 
sent to RequestHandler to replace <field name="text">...</field> to 
<field name="content">...</field> but then a Bad Request Error is 
returned from Solr. I couldn't figure out which is the right field name 
to send some content which will be indexed by Update-RequestHandler.


<?xml version="1.0" encoding="UTF-8"?>
<response>

<lst name="responseHeader">
   <int name="status">0</int>
   <int name="QTime">3</int>
   <lst name="params">
     <str name="version">2.2</str>
     <str name="indent">on</str>
     <str name="rows">10</str>
     <str name="start">0</str>
     <str name="q">*:*</str>
   </lst>
</lst>
<result name="response" numFound="3145" start="0">
   <doc>
     <str name="abstract"/>
     <str name="access">c:0</str>
     <str name="author"/>
     <date name="changed">2014-02-20T20:47:59Z</date>
     <str name="content">My Page Content</str>
     <date name="created">2014-02-20T20:46:35Z</date>
     <str name="description"/>
     <date name="endtime">1970-01-01T01:00:00Z</date>
     <str 
name="id">a432dd67cbe9d16e3692e2d2c4de4850f7bf4038/pages/5029/0/0/0</str>
     <date name="indexed">2014-05-07T09:09:18.583Z</date>
     <str name="navTitle"/>
     <int name="pid">39</int>
     <arr 
name="rootline"><str>0-6</str><str>1-6/5</str><str>2-6/5/29</str>
       <str>3-6/5/29/39</str><str>4-6/5/29/39/5029</str></arr>
     <str name="site">mysite.com</str>
     <str name="siteHash">a432dd67cbe9d16e3692e2d2c4de4850f7bf4038</str>
     <str name="sortAuthor_stringS"/>
     <str name="sortSubTitle_stringS"/>
     <str name="sortTitle_stringS">Juli 2013</str>
     <str name="subTitle"/>
     <str name="teaser">My Teaser Text</str>
     <str name="title">Juli 2013</str>
     <str name="type">pages</str>
     <int name="typeNum">0</int>
     <int name="uid">5029</int>
     <str name="url">url/to/my/page</str>
   </doc>

</result>
</response>


More information about the TYPO3-project-solr mailing list