|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Title: FieldSearch.java
Description: A provider of a simple field-based search service across all objects in the repository
Key object metadata and dublin core fields are searchable from via implementations of this interface.
Key fields include:
Dublin core fields include:
License and Copyright: The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/.
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
The entire file consists of original code. Copyright © 2002-2005 by The Rector and Visitors of the University of Virginia and Cornell University. All rights reserved.
-----------------------------------------------------------------------------
| Method Summary | |
boolean |
delete(java.lang.String pid)
Remove an object from the search indexes. |
FieldSearchResult |
findObjects(java.lang.String[] resultFields,
int maxResults,
FieldSearchQuery query)
Search across specific fields and return the desired fields. |
FieldSearchResult |
resumeFindObjects(java.lang.String sessionToken)
Resume an in-progress search across specific fields and return the desired fields. |
void |
update(DOReader reader)
Update the search indexes with information from the provided DOReader. |
| Method Detail |
public void update(DOReader reader)
throws ServerException
reader - the DOReader containing all the field information
for the object
ServerException - if anything went wrong
public boolean delete(java.lang.String pid)
throws ServerException
pid - the unique id of the object whose info should be removed
ServerException - if anything went wrong
public FieldSearchResult findObjects(java.lang.String[] resultFields,
int maxResults,
FieldSearchQuery query)
throws ServerException
resultFields - the desired fieldsmaxResults - the maximum number of results the client wantsquery - the query
ServerException - if anything went wrong
public FieldSearchResult resumeFindObjects(java.lang.String sessionToken)
throws ServerException
sessionToken - the token of the session in which the remaining
results can be found
ServerException - if anything went wrong
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||