/* Copyright 2005 The Apache Software Foundation or its licensors, as * applicable. * * Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include "lcn_pools.h" #include "lcn_query.h" #include #ifndef _LCN_SEARCHER_H #define _LCN_SEARCHER_H #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ typedef struct lcn_searcher_t lcn_searcher_t; /* XXX temporarily declared here, will move eventually */ typedef struct lcn_filter_t lcn_filter_t; typedef struct lcn_sort_t lcn_sort_t; lcn_error_t * lcn_index_searcher_open (lcn_searcher_t **searcher, const char *path, apr_pool_t *pool); lcn_error_t * lcn_index_searcher_close (lcn_searcher_t *searcher); /* XXX should replace the array with a real hits interface, to avoid pulling * tons of stuff into ram. */ lcn_error_t * lcn_searcher_search (apr_array_header_t **hits, lcn_searcher_t *searcher, lcn_query_t *query, lcn_filter_t *filter, lcn_sort_t *sort, apr_pool_t *pool); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* _LCN_SEARCHER_H */