org.outerj.daisy.ftindex
Interface FullTextIndex

All Known Implementing Classes:
FullTextIndexImpl

public interface FullTextIndex


Method Summary
 void index(long documentId, long branchId, long languageId, java.lang.String documentName, java.lang.String content, java.lang.String fields)
          Index the given content for the given document variant.
 Hits search(java.lang.String query, long branchId, long languageId, boolean searchName, boolean searchContent, boolean searchFields)
           
 

Method Detail

search

public Hits search(java.lang.String query,
                   long branchId,
                   long languageId,
                   boolean searchName,
                   boolean searchContent,
                   boolean searchFields)
            throws org.outerj.daisy.repository.query.QueryException
Throws:
org.outerj.daisy.repository.query.QueryException

index

public void index(long documentId,
                  long branchId,
                  long languageId,
                  java.lang.String documentName,
                  java.lang.String content,
                  java.lang.String fields)
           throws java.lang.Exception
Index the given content for the given document variant. This will first delete any previous indexed content for that document variant, and then index the new content.

The parameters documentName, content and fields are all optional (can all be null), if they are all null then the index for this document will just be deleted.

Throws:
java.lang.Exception


Copyright © -2005 . All Rights Reserved.