You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-dev@xml.apache.org by Vadim Gritsenko <va...@reverycodes.com> on 2004/01/09 15:07:44 UTC

Full text index, Re: Replication

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>
     *    contact@name  Indexes all contacts by name attribute
     *    memo          Indexes the text of all memo elements
     *    contact@*     Indexes all contact attributes
     *    *@name        Indexes the name attribute for all elements
     *    *             Indexes the text of all elements
     *    *@*           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



Re: Full text index, Re: Replication

Posted by Andy Armstrong <an...@tagish.com>.
Vadim Gritsenko wrote:

[snip]
> 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.

Wow. That's a lot more of a start than I'd hoped for. Excellent, thanks. 
I'm hoping we'll be able to start work on it next week.

-- 
Andy Armstrong, Tagish