Groonga
Loading...
Searching...
No Matches
posting.h
Go to the documentation of this file.
1/*
2 Copyright(C) 2009-2018 Brazil
3 Copyright(C) 2020 Sutou Kouhei <kou@clear-code.com>
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#pragma once
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26typedef struct {
28 uint32_t sid;
29 uint32_t pos;
30 uint32_t tf;
31 uint32_t weight;
32 uint32_t rest;
34
37
45
46GRN_API void
48 grn_posting *posting,
49 uint32_t weight);
50GRN_API void
52 grn_posting *posting,
53 float weight);
54
55#ifdef __cplusplus
56}
57#endif
uint32_t grn_id
Definition groonga.h:44
#define GRN_API
Definition groonga.h:39
GRN_API uint32_t grn_posting_get_section_id(grn_ctx *ctx, grn_posting *posting)
GRN_API grn_posting * grn_posting_open(grn_ctx *ctx)
GRN_API void grn_posting_close(grn_ctx *ctx, grn_posting *posting)
GRN_API void grn_posting_set_weight_float(grn_ctx *ctx, grn_posting *posting, float weight)
GRN_API uint32_t grn_posting_get_rest(grn_ctx *ctx, grn_posting *posting)
GRN_API uint32_t grn_posting_get_weight(grn_ctx *ctx, grn_posting *posting)
GRN_API void grn_posting_set_weight(grn_ctx *ctx, grn_posting *posting, uint32_t weight)
GRN_API float grn_posting_get_weight_float(grn_ctx *ctx, grn_posting *posting)
GRN_API grn_id grn_posting_get_record_id(grn_ctx *ctx, grn_posting *posting)
GRN_API uint32_t grn_posting_get_position(grn_ctx *ctx, grn_posting *posting)
GRN_API uint32_t grn_posting_get_tf(grn_ctx *ctx, grn_posting *posting)
Definition groonga.h:351
Definition posting.h:26
uint32_t pos
Definition posting.h:29
uint32_t tf
Definition posting.h:30
uint32_t sid
Definition posting.h:28
uint32_t rest
Definition posting.h:32
grn_id rid
Definition posting.h:27
uint32_t weight
Definition posting.h:31