2 Replies Latest reply on Jul 29, 2013 12:26 AM by Sergey77777

    Lucene indexing configuration

    Sergey77777

      Is it possible to add custom analyzer (EnglishAnalyzer) to properties and when it(analyzer) has to take in consideration custom boosts of these properties? When i try to add analyzer to property, lucene does not consider boosts, and when I removed custom analyzer the problem disappeared too. Here is my workspace.xml search configuration:

       

      <SearchIndex class="com.day.crx.query.lucene.LuceneHandler">

                  <param name="path" value="${wsp.home}/index"/>

                  <param name="resultFetchSize" value="50"/>

                           <param name="indexingConfiguration" value="${wsp.home}/indexing_config.xml"/>

      </SearchIndex>

      and here is indexing_config.xml analysers tag text:

       

       


      <analyzers>

      <analyzer class="org.apache.lucene.analysis.en.EnglishAnalyzer">

      <property boost="5.0">cq:name</property>

      <property boost="5.0">jcr:title</property>

      <property boost="5.0">title</property>

      <property boost="4.0">cq:tags</property>

      <property boost="3.0">jcr:description</property>

      <property boost="3.0">jcr:data</property>

      <property boost="1.0">text</property>

      </analyzer>

      </analyzers>


      Does anybody can help me?

       

      Message was edited by: Sergey77777