Ignore:
Timestamp:
2014-09-11T21:11:11+12:00 (10 years ago)
Author:
ak19
Message:

Kathy discovered that that the total number of docs found is mentioned for solr collections when reporting the term frequencies for more than 1 term. This is wrong, because for collections built with other indexers, the number of docs found is reported per term along with that term's term frequency. Not sure at present how to compute the number of docs found per term for solr collections (the num docs found value is set in ext/solr's SolrQueryWrapper.java). Instead, for solr collections we for now don't report at term-level the total number of docs if there are multiple terms. The total number of docs returned is already being reported as the first line of the summary of results.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/pages/query.xsl

    r26883 r29275  
    335335                        </xsl:variable>
    336336                        <span class="termInfo">
    337                             <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, $occursTextKey, concat(@name,';', @freq,';',  @numDocsMatch,';',  $levelText))"/>
     337                          <!--<xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, $occursTextKey, concat(@name,';', @freq,';',  @numDocsMatch,';',  $levelText))"/>-->
     338                          <!-- For solr collections, display:
     339                                 term x occured y times
     340                                 term a occured b times
     341                               For collections using all other indexers, display:
     342                                 term x occurred y times in n sections/documents
     343                                 term a occurred b times in m sections/docs
     344                            -->
     345                            <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, $occursTextKey, concat(@name,';', @freq))"/>
     346                            <xsl:choose>
     347                              <xsl:when test="/page/pageResponse/collection[@type != 'solr']">
     348                                <xsl:text> </xsl:text><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'query.termSectionFreq', concat(@numDocsMatch,';',  $levelText))"/>
     349                              </xsl:when>
     350                            </xsl:choose>
    338351                        </span>
    339352                        <br/>
Note: See TracChangeset for help on using the changeset viewer.