| 1 | /* |
| 2 | Copyright(C) 2015-2016 Brazil |
| 3 | |
| 4 | This library is free software; you can redistribute it and/or |
| 5 | modify it under the terms of the GNU Lesser General Public |
| 6 | License as published by the Free Software Foundation; either |
| 7 | version 2.1 of the License, or (at your option) any later version. |
| 8 | |
| 9 | This library is distributed in the hope that it will be useful, |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 | Lesser General Public License for more details. |
| 13 | |
| 14 | You should have received a copy of the GNU Lesser General Public |
| 15 | License along with this library; if not, write to the Free Software |
| 16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 17 | */ |
| 18 | |
| 19 | #pragma once |
| 20 | |
| 21 | #include "grn_ctx.h"cxx . . $ `<file>/lib/grn_ctx.h`/ |
| 22 | #include "grn_db.h"cxx . . $ `<file>/lib/grn_db.h`/ |
| 23 | |
| 24 | #include <groonga/scorer.h>cxx . . $ `<file>/include/groonga/scorer.h`/ |
| 25 | |
| 26 | #ifdef __cplusplus |
| 27 | extern "C" { |
| 28 | #endif |
| 29 | |
| 30 | struct _grn_scorer_matched_recordcxx . . $ _grn_scorer_matched_record# { |
| 31 | grn_objcxx . . $ grn_obj# *tablecxx . . $ _grn_scorer_matched_record#table.; |
| 32 | grn_objcxx . . $ grn_obj# *lexiconcxx . . $ _grn_scorer_matched_record#lexicon.; |
| 33 | grn_idcxx . . $ grn_id# idcxx . . $ _grn_scorer_matched_record#id.; |
| 34 | grn_objcxx . . $ grn_obj# termscxx . . $ _grn_scorer_matched_record#terms.; |
| 35 | grn_objcxx . . $ grn_obj# term_weightscxx . . $ _grn_scorer_matched_record#term_weights.; |
| 36 | uint32_tcxx . . $ uint32_t# total_term_weightscxx . . $ _grn_scorer_matched_record#total_term_weights.; |
| 37 | uint64_tcxx . . $ uint64_t# n_documentscxx . . $ _grn_scorer_matched_record#n_documents.; |
| 38 | uint32_tcxx . . $ uint32_t# n_occurrencescxx . . $ _grn_scorer_matched_record#n_occurrences.; |
| 39 | uint64_tcxx . . $ uint64_t# n_candidatescxx . . $ _grn_scorer_matched_record#n_candidates.; |
| 40 | uint32_tcxx . . $ uint32_t# n_tokenscxx . . $ _grn_scorer_matched_record#n_tokens.; |
| 41 | int weightcxx . . $ _grn_scorer_matched_record#weight.; |
| 42 | grn_objcxx . . $ grn_obj# *args_exprcxx . . $ _grn_scorer_matched_record#args_expr.; |
| 43 | unsigned int args_expr_offsetcxx . . $ _grn_scorer_matched_record#args_expr_offset.; |
| 44 | }; |
| 45 | |
| 46 | |
| 47 | #ifdef __cplusplus |
| 48 | } |
| 49 | #endif |