Quantcast
Channel: Adobe Community : Discussion List - CQ Cloud (read only)
Viewing all articles
Browse latest Browse all 111

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?


Viewing all articles
Browse latest Browse all 111

Latest Images

Trending Articles





Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>