Andy Armstrong wrote:

The full text indexing thing actually takes precedence at the moment. I'll be having a look at that next week if anyone has any bright ideas :)


Actually, I was thinking about adding it too.

Full text index can be built on top of Lucene, by creating new type of index. Currently, Xindice has NameIndexer and ValueIndexer, implementations of the org.apache.xindice.core.indexer.Indexer interface. New implementation should be added, can be called TextIndexer, I guess (or, FullTextIndexer). Indexer interface already defines what index patter should look like:

    * getPattern returns the pattern recognized by this Indexer.  Patterns
    * must be in the form of (elem|*)[@(attr|*)] to tell the IndexManager
    * which element types to send to it, so for example:
    * <pre>
    *    [EMAIL PROTECTED]  Indexes all contacts by name attribute
    *    memo          Indexes the text of all memo elements
    *    [EMAIL PROTECTED]     Indexes all contact attributes
    *    [EMAIL PROTECTED]        Indexes the name attribute for all elements
    *    *             Indexes the text of all elements
    *    [EMAIL PROTECTED]           Indexes all attributes of all elements
    * </pre>

And index style is already defined:

   String STYLE_NODENAME = "Node:Name";
   String STYLE_NODEVALUE = "Node:Value";
   String STYLE_FULLTEXT = "Node:FullText";

May be some tweaks would be required to index manager to make it properly work with this type of index, and that should be it.

Vadim




Reply via email to