I have prototyped a SearchService for Turbine that uses Lucene. It provides
methods for searching a Lucene created index. That being said I will ask
the following:
1. Does anyone think this is a good idea?
2. Has it been done?
3. Should indexing be part of service or a separate service.
4. Here is the interface I am using with my service. The index method does
nothing for now, but I have searching working. The only problem I have is
getting the the ResourceService to resolve an abolute URL from a relative.
I searched through the source code of other services but I could not find an
answer.
If you guys think this is a good service I will put the source code together
an send it to a committer for review.
public interface SearchService extends Service
{
public static final String SERVICE_NAME = "SearchService";
static String SEARCH_PREFIX= "search.engine";
static String INDEX_OUTPUT_DIRECTORY = "index.directory";
static String OBJECT_CLASS_NAMES = "database.objects";
public Hits search(Query query);
public Query getQuery(String searchText, String fieldName);
public void indexData();
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>