[TYPO3-Solr] Antw: Re: hierarchical facets

Frank Eichelbaum Frank.Eichelbaum at lisum.berlin-brandenburg.de
Wed Jan 11 09:18:15 CET 2012


Hallo,
here is my ts.

plugin.tx_solr.search.faceting = 1

plugin.tx_solr.index.additionalFields.pagehierarchy_stringM = TEXT
plugin.tx_solr.index.additionalFields.pagehierarchy_stringM {
  value = {leveltitle:1}/{leveltitle:2}/{leveltitle:3}/
  insertData = 1
}
plugin.tx_solr.index.fieldProcessingInstructions.pagehierarchy_stringM = pathToHierarchy

##### test1 #####
 plugin.tx_solr.search.faceting.facets.test1 {   
  label = test1
  field= pagehierarchy_stringM
 
renderer = tx_solr_facet_HierarchicalFacetRenderer

  renderingInstruction = HMENU
  renderingInstruction {    
        special = userfunction
            // hier passiert eigentlich die ganze Magic
        special.userFunc = tx_solr_HierarchicalFacet->getMenuStructure
    
        1 = TMENU
        1 {
            NO = 1
            NO {
                wrapItemAndSub = <li>|</li>
            }
        }

        2 < .1
        2.wrap = <ul>|</ul>

        3 < .2
 }
}

##### test2 #####
plugin.tx_solr.search.faceting.facets.test2 {
  label = test2
  field = pagehierarchy_stringM
  renderer = tx_solr_facet_HierarchicalFacetRenderer
  renderingInstruction = TEXT
  renderingInstruction {
    field = optionValue
    split {
      token = /
      cObjNum = |*| 2 |*| 1
      1.cObject = RECORDS
      1.cObject {
        tables = pages
        source.current = 1
        conf.pages = TEXT
        conf.pages.field = title
        conf.pages.wrap = |
      }
      2.cObject = TEXT # do nothing  
    }
  }
}


With the config test1 i have only 1 level.
When i use the config  from test2 , there is no output. 

Frank

>>> Olivier Dobberkau <olivier.dobberkau at dkd.de> schrieb am Dienstag, 10. Januar
2012 um 20:42 in Nachricht
<mailman.1.1326224562.9108.typo3-project-solr at lists.typo3.org>:
> Am 10.01.12 16:03, schrieb Frank Eichelbaum:
> 
>> What's wrong?
> 
> can you post your ts?
> 
> olivier
> _______________________________________________
> TYPO3-project-solr mailing list
> TYPO3-project-solr at lists.typo3.org 
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-solr



More information about the TYPO3-project-solr mailing list