| 1 | /* |
| 2 | Copyright (C) 2013-2018 Brazil |
| 3 | Copyright (C) 2018-2024 Sutou Kouhei <[email protected]> |
| 4 | |
| 5 | This library is free software; you can redistribute it and/or |
| 6 | modify it under the terms of the GNU Lesser General Public |
| 7 | License as published by the Free Software Foundation; either |
| 8 | version 2.1 of the License, or (at your option) any later version. |
| 9 | |
| 10 | This library is distributed in the hope that it will be useful, |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | Lesser General Public License for more details. |
| 14 | |
| 15 | You should have received a copy of the GNU Lesser General Public |
| 16 | License along with this library; if not, write to the Free Software |
| 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 | */ |
| 19 | |
| 20 | /* Don't use this header directly as much as possible! */ |
| 21 | |
| 22 | #pragma once |
| 23 | |
| 24 | #include "grn_db.h" |
| 25 | |
| 26 | #ifdef __cplusplus |
| 27 | extern "C" { |
| 28 | #endif |
| 29 | |
| 30 | #define GRN_SCAN_INFO_INITIAL_MAX_N_ARGS 16 |
| 31 | |
| 32 | struct _grn_scan_info { |
| 33 | uint32_t start; |
| 34 | uint32_t end; |
| 35 | int32_t nargs; |
| 36 | int flags; |
| 37 | grn_operator op; |
| 38 | grn_operator logical_op; |
| 39 | float weight_factor; |
| 40 | grn_obj sections; |
| 41 | grn_obj weights; |
| 42 | grn_obj index; |
| 43 | grn_obj *query; |
| 44 | grn_obj **args; |
| 45 | grn_obj *initial_args[GRN_SCAN_INFO_INITIAL_MAX_N_ARGS]; |
| 46 | int max_interval; |
| 47 | int additional_last_interval; |
| 48 | grn_obj max_element_intervals; |
| 49 | int min_interval; |
| 50 | int similarity_threshold; |
| 51 | int quorum_threshold; |
| 52 | grn_obj scorers; |
| 53 | grn_obj scorer_args_exprs; |
| 54 | grn_obj scorer_args_expr_offsets; |
| 55 | grn_obj start_positions; |
| 56 | int32_t max_nargs; |
| 57 | }; |
| 58 | |
| 59 | #ifdef __cplusplus |
| 60 | } |
| 61 | #endif |