Project

General

Profile

« Previous | Next » 

Revision 40933

-changed base text type in solr to text_ancient
-added text_ancient fields to __all

View differences:

modules/dnet-eagle-workflows/trunk/src/main/resources/eu/dnetlib/functionality/index/conf/schemaTemplateEagle.xslt
4 4

  
5 5
    <xsl:template match="/FIELDS">
6 6

  
7
        <xsl:param name="textFieldType" select="string('text_common')"/>
7
        <xsl:param name="textFieldType" select="string('text_ancient')"/>
8 8
        <xsl:variable name="smallcase" select="'abcdefghijklmnopqrstuvwxyz'"/>
9 9
        <xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
10 10

  
......
409 409
            <!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
410 410
            <solrQueryParser defaultOperator="OR"/>
411 411

  
412
            <xsl:for-each select="./FIELD[(@type = 'ngramtext' or not(@type)) and not(@tokenizable = 'false')]">
412
            <xsl:for-each select="./FIELD[(@type = 'ngramtext' or @type = 'text_ancient' or not(@type)) and not(@tokenizable = 'false')]">
413 413
                <xsl:variable name="fieldname" select="translate(@name, $uppercase, $smallcase)"/>
414 414
                <copyField source="{$fieldname}" dest="__all"/>
415 415
            </xsl:for-each>

Also available in: Unified diff