1/*2 * Copyright 2000-2004 The Apache Software Foundation.3 * 4 * Licensed under the Apache License, Version 2.0 (the "License");5 * you may not use this file except in compliance with the License.6 * You may obtain a copy of the License at7 * 8 * http://www.apache.org/licenses/LICENSE-2.09 * 10 * Unless required by applicable law or agreed to in writing, software11 * distributed under the License is distributed on an "AS IS" BASIS,12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.13 * See the License for the specific language governing permissions and14 * limitations under the License.15 */16packageorg.apache.jetspeed.services.search;
1718import java.util.Collection;
1920/***21 * Contract for implementing a search service.22 *23 * @author <a href="mailto:taylor@apache.org">David Sean taylor</a>24 * @version $Id: SearchService.java,v 1.3 2004/02/23 03:48:47 jford Exp $25 */26publicinterfaceSearchService27 {
28/***29 * Service name30 */31publicstaticfinal String SERVICE_NAME = "Search";
3233/***34 * Add index entry35 * 36 * @param o37 * @return 38 */39publicboolean add(Object o);
4041/***42 * Add collection of index entries43 * 44 * @param c45 * @return 46 */47publicboolean add(Collection c);
4849/***50 * Remove index entry51 * 52 * @param o53 * @return 54 */55publicboolean remove(Object o);
5657/***58 * Remove collection of index entries59 * 60 * @param c61 * @return 62 */63publicboolean remove(Collection c);
6465/***66 * Update index entry67 * 68 * @param o69 * @return 70 */71publicboolean update(Object o);
7273/***74 * Update index entries75 * 76 * @param c77 * @return 78 */79publicboolean update(Collection c);
8081/***82 * Search the index83 * 84 * @param search85 * @return 86 */87publicSearchResults search(String search);
88 }