Changeset 29932 for gs3-extensions

Show
Ignore:
Timestamp:
27.05.2015 23:31:51 (4 years ago)
Author:
litvinovg
Message:

Added russian morpology analyzer

Location:
gs3-extensions/solr/trunk/src
Files:
3 added
2 modified

Legend:

Unmodified
Added
Removed
  • gs3-extensions/solr/trunk/src/build.xml

    r29751 r29932  
    8787           xsltc.jar 
    8888           serializer.jar"/> 
     89  <property name="russian-morph-jars" 
     90            value="russian-4.7.2.jar 
     91                   morph-4.7.2.jar"/> 
    8992 
    9093  <property name="java-service-files"  
     
    188191    <copy todir="${tomcat.dir}/webapps/solr/WEB-INF/lib"> 
    189192      <filelist dir="${web.libdir}" files="${shared-xalan-jars}" /> 
     193      <filelist dir="lib/russianmorphology" files="${russian-morph-jars}" /> 
    190194    </copy> 
    191195    <jar destfile="${tomcat.dir}/webapps/solr.war" basedir="${tomcat.dir}/webapps/solr" /> 
  • gs3-extensions/solr/trunk/src/conf/schema.xml.in

    r29171 r29932  
    11251125      </analyzer> 
    11261126    </fieldType> 
    1127      
     1127    <!-- Russian with morphology--> 
     1128    <fieldType name="text_ru_morph" class="solr.TextField" positionIncrementGap="100"> 
     1129          <analyzer> 
     1130          <tokenizer class="solr.StandardTokenizerFactory"/> 
     1131          <filter class="solr.LowerCaseFilterFactory"/> 
     1132          <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_ru.txt" format="snowball" /> 
     1133          <filter class="org.apache.lucene.morphology.russian.RussianFilterFactory"/> 
     1134          </analyzer> 
     1135    </fieldType> 
     1136  
    11281137    <!-- Swedish --> 
    11291138    <fieldType name="text_sv" class="solr.TextField" positionIncrementGap="100">