org.apache.jetspeed.services.search
Interface SearchService

All Known Implementing Classes:
LuceneSearchService

public interface SearchService

Contract for implementing a search service.

Version:
$Id: SearchService.java,v 1.4 2004/07/15 00:14:12 jford Exp $
Author:
David Sean taylor

Field Summary
static java.lang.String SERVICE_NAME
          Service name
 
Method Summary
 boolean add(java.util.Collection c)
          Add collection of index entries
 boolean add(java.lang.Object o)
          Add index entry
 boolean optimize()
          Optimize search indexes (optional operation).
 boolean remove(java.util.Collection c)
          Remove collection of index entries
 boolean remove(java.lang.Object o)
          Remove index entry
 SearchResults search(java.lang.String search)
          Search the index
 boolean update(java.util.Collection c)
          Update index entries
 boolean update(java.lang.Object o)
          Update index entry
 

Field Detail

SERVICE_NAME

public static final java.lang.String SERVICE_NAME
Service name

See Also:
Constant Field Values
Method Detail

add

public boolean add(java.lang.Object o)
Add index entry

Parameters:
o -
Returns:

add

public boolean add(java.util.Collection c)
Add collection of index entries

Parameters:
c -
Returns:

remove

public boolean remove(java.lang.Object o)
Remove index entry

Parameters:
o -
Returns:

remove

public boolean remove(java.util.Collection c)
Remove collection of index entries

Parameters:
c -
Returns:

update

public boolean update(java.lang.Object o)
Update index entry

Parameters:
o -
Returns:

update

public boolean update(java.util.Collection c)
Update index entries

Parameters:
c -
Returns:

search

public SearchResults search(java.lang.String search)
Search the index

Parameters:
search -
Returns:

optimize

public boolean optimize()
                 throws java.lang.UnsupportedOperationException
Optimize search indexes (optional operation).

Returns:
Throws:
java.lang.UnsupportedOperationException


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.