Greek word splitter for ZCTextIndex
Project description
Introduction
============
The default plone/zope splitters do not properly work with greek text. This product removes accents from greek strings and properly replaces them with unicode, enabling your searches to work out of the box!
Installation
============
If not using generic setup with plone:
1) Create a ZCTextIndex Lexicon from ZMI
2) Delete in the portal_catalog the indexes that contain greek text and recreate them using GRSplitter as a splitter.
If you are using generic setup profiles, here is an example snippet to help you with catalog.xml
<?xml version="1.0"?>
<object name="portal_catalog" meta_type="Plone Catalog Tool">
<object name="gr_lexicon" meta_type="ZCTextIndex Lexicon" purge="False" >
<element name="GR splitter" group="Word Splitter"/>
<element name="Case Normalizer" group="Case Normalizer"/>
</object>
<index name="greekIndexExample" meta_type="ZCTextIndex" purge="False" >
<indexed_attr value="myAttribute"/>
<extra name="index_type" value="Okapi BM25 Rank"/>
<extra name="lexicon_id" value="gr_lexicon"/>
</index>
</object>
Changelog
=========
1.1.1
----------------
* egg-fix release
1.1
----------------
* Initial release
============
The default plone/zope splitters do not properly work with greek text. This product removes accents from greek strings and properly replaces them with unicode, enabling your searches to work out of the box!
Installation
============
If not using generic setup with plone:
1) Create a ZCTextIndex Lexicon from ZMI
2) Delete in the portal_catalog the indexes that contain greek text and recreate them using GRSplitter as a splitter.
If you are using generic setup profiles, here is an example snippet to help you with catalog.xml
<?xml version="1.0"?>
<object name="portal_catalog" meta_type="Plone Catalog Tool">
<object name="gr_lexicon" meta_type="ZCTextIndex Lexicon" purge="False" >
<element name="GR splitter" group="Word Splitter"/>
<element name="Case Normalizer" group="Case Normalizer"/>
</object>
<index name="greekIndexExample" meta_type="ZCTextIndex" purge="False" >
<indexed_attr value="myAttribute"/>
<extra name="index_type" value="Okapi BM25 Rank"/>
<extra name="lexicon_id" value="gr_lexicon"/>
</index>
</object>
Changelog
=========
1.1.1
----------------
* egg-fix release
1.1
----------------
* Initial release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
qi.GRSplitter-1.1.1.tar.gz
(3.8 kB
view hashes)
Built Distribution
qi.GRSplitter-1.1.1-py2.4.egg
(7.4 kB
view hashes)