1 | /* -*- c-basic-offset: 2 -*- */ |
2 | /* |
3 | Copyright(C) 2015-2016 Brazil |
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 version 2.1 as published by the Free Software Foundation. |
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" |
22 | #include "grn_db.h" |
23 | |
24 | #include <groonga/scorer.h> |
25 | |
26 | #ifdef __cplusplus |
27 | extern "C" { |
28 | #endif |
29 | |
30 | struct _grn_scorer_matched_record { |
31 | grn_obj *table; |
32 | grn_obj *lexicon; |
33 | grn_id id; |
34 | grn_obj terms; |
35 | grn_obj term_weights; |
36 | uint32_t total_term_weights; |
37 | uint64_t n_documents; |
38 | uint32_t n_occurrences; |
39 | uint64_t n_candidates; |
40 | uint32_t n_tokens; |
41 | int weight; |
42 | grn_obj *args_expr; |
43 | unsigned int args_expr_offset; |
44 | }; |
45 | |
46 | |
47 | #ifdef __cplusplus |
48 | } |
49 | #endif |
50 | |