[TYPO3-Solr] tx_news indexing does not work for me

Aart de Bruijn aart at brownentertainment.nl
Fri Nov 16 11:51:38 CET 2012


On 23-03-12 13:01, Ingo Renner wrote:
> Am 23.03.12 08:55, schrieb Christian Bleicher - DieLobby Werbeagentur Gmbh:
>> Hi,
>>
>> I use the 2.0 version from the solr extension. The Solr Server is
>> installed via installscript.
>> I have a two language setup (german=1|english=0) and I am able to
>> index my own extensiontable and tt_content table. Everything works
>> great and very very fast. But I tryed the whole day to index the
>> tx_news_domain_model_news table. I Took the example from forge for
>> tt_news and edited it to match the title and bodytext of the tx_news
>> class. For the first step we don't need the indexing of the
>> contentelements. TS looks like that:
>
> Why do you index tt_content?
>
> Here's what I have for EXT:news currently (will also be in v2.1):
>
> plugin.tx_solr.index.queue {
>
>      news = 1
>      news {
>          table = tx_news_domain_model_news
>
>          fields {
>              abstract = teaser
>
>              author = author
>              authorEmail_stringS = author_email
>
>              title = title
>
>              content = COA
>              content {
>                  10 = TEXT
>                  10 {
>                      field = bodytext
>                      noTrimWrap = || |
>                  }
>
>                  20 = SOLR_RELATION
>                  20 {
>                      localField = content_elements
>                      foreignLabelField = bodytext
>                      singleValueGlue = | |
>                  }
>              }
>
>              category_stringM = SOLR_RELATION
>              category_stringM {
>                  localField = categories
>                  multiValue = 1
>              }
>
>              keywords = SOLR_RELATION
>              keywords {
>                  localField = tags
>                  multiValue = 1
>              }
>
>              url = TEXT
>              url {
>                  typolink.parameter = 134
>                  typolink.additionalParams =
> &tx_news_pi1[controller]=News&tx_news_pi1[action]=detail&tx_news_pi1[news]={field:uid}
>
>                  typolink.additionalParams.insertData = 1
>                  typolink.useCacheHash = 1
>                  typolink.returnLast = url
>              }
>          }
>
>          attachments {
>              fields = related_files
>          }
>      }
>
> }
>
>
> Ingo
>
>

Thanks for this configuration! It helped me out on configuring a custom 
plugin. Just wanted to say thanks.

Aart



More information about the TYPO3-project-solr mailing list