Quantcast
Channel: Adobe Community : Unanswered Discussions - Digital Marketing Suite
Viewing all articles
Browse latest Browse all 937

Lucene indexing configuration

$
0
0

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


Viewing all articles
Browse latest Browse all 937

Trending Articles