typo3 - Solr Indexing - Manipulating the search result -


i working typo3 solr extension , have doubts regarding solr result set manipulation.

i have added special configuration indexing particular pages in page tree. ie pages starts label "expertise%" .i have managed added . , indexing working our trouble. achieve , want added parent page title search result.i.e

this page tree

|---- 1.00.100 (parent page) |--subpage 1 |--subpage 2 |--expertise |--test page` 

and in solr search result should be

1.00.100 - expertise

is possible in typo3 solr. there hook or signalslot available implement this?

tried ,but doesn't seems work me ?

  plugin.tx_solr.index.queue.expertise_offered = 1   plugin.tx_solr.index.queue.expertise_offered {     table = pages           additionalwhereclause = doktype = 1 , no_search = 0 , title '%expertise offered%'             fields {             title = title             content = content             parentpagetitle_strings = content             parentpagetitle_strings {                     table = pages                     select {                     selectfields = title                     = uid = ###pid###                     }                     markers {                            pid.data = field:pid                     }         }         content {             table = tt_content             select {                 selectfields = header, bodytext             }             renderobj = coa             renderobj {                 10 = text                 10.field = header                 # removes html tags                 11 = solr_content                 11.field = bodytext             }         }         url = text         url.typolink.parameter = text         url.typolink.parameter.field = uid     }   } 

you don't need hook or signal-slot. can follows:

  1. add title of parent page indexing configuration. there no field it, can dynamically add fields solr documents. done sending data in field has suffix, determines field type.

    for example: setting field parentpagetitle_strings parent pages title in indexing configuration creates new stored, single-valued field of type string in indexed document.

    filling field this:

    plugin.tx_solr {     index {         queue {             <yourindexconfigname> = 1             <yourindexconfigname> {                 table = pages                  fields {                     parentpagetitle_strings = content                     parentpagetitle_strings {                         # build query here retrieve                         # parent page title.                     }                 }             }         }     } } 
  2. in template search results, can use marker ###result_document.parentpagetitle_strings### retrieve field.

the available field types can found in ext:solr/resources/solr/typo3cores/conf/general_schema_fields.conf line 157 onwards (refering version 3.0.0 here).

you should of course use type other string if want have result indexed nicely.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -