mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 10:31:54 +01:00
cleanup
This commit is contained in:
parent
e3849552b1
commit
bfc6a29df6
4 changed files with 2 additions and 13 deletions
|
@ -35,7 +35,6 @@ struct _ft_vft {
|
||||||
float (*find_relevance)(FT_INFO *, my_off_t, byte *);
|
float (*find_relevance)(FT_INFO *, my_off_t, byte *);
|
||||||
void (*close_search)(FT_INFO *);
|
void (*close_search)(FT_INFO *);
|
||||||
float (*get_relevance)(FT_INFO *);
|
float (*get_relevance)(FT_INFO *);
|
||||||
my_off_t (*get_docid)(FT_INFO *);
|
|
||||||
void (*reinit_search)(FT_INFO *);
|
void (*reinit_search)(FT_INFO *);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -413,11 +413,6 @@ float ft_boolean_get_relevance(FT_INFO *ftb)
|
||||||
return ftb->root->cur_weight;
|
return ftb->root->cur_weight;
|
||||||
}
|
}
|
||||||
|
|
||||||
my_off_t ft_boolean_get_docid(FT_INFO *ftb)
|
|
||||||
{
|
|
||||||
return HA_POS_ERROR;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ft_boolean_reinit_search(FT_INFO *ftb)
|
void ft_boolean_reinit_search(FT_INFO *ftb)
|
||||||
{
|
{
|
||||||
_ftb_init_index_search(ftb);
|
_ftb_init_index_search(ftb);
|
||||||
|
|
|
@ -278,11 +278,6 @@ float ft_nlq_get_relevance(FT_INFO *handler)
|
||||||
return handler->doc[handler->curdoc].weight;
|
return handler->doc[handler->curdoc].weight;
|
||||||
}
|
}
|
||||||
|
|
||||||
my_off_t ft_nlq_get_docid(FT_INFO *handler)
|
|
||||||
{
|
|
||||||
return handler->doc[handler->curdoc].dpos;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ft_nlq_reinit_search(FT_INFO *handler)
|
void ft_nlq_reinit_search(FT_INFO *handler)
|
||||||
{
|
{
|
||||||
handler->curdoc=-1;
|
handler->curdoc=-1;
|
||||||
|
|
|
@ -49,11 +49,11 @@ const MI_KEYSEG ft_keysegs[FT_SEGS]={
|
||||||
|
|
||||||
const struct _ft_vft _ft_vft_nlq = {
|
const struct _ft_vft _ft_vft_nlq = {
|
||||||
ft_nlq_read_next, ft_nlq_find_relevance, ft_nlq_close_search,
|
ft_nlq_read_next, ft_nlq_find_relevance, ft_nlq_close_search,
|
||||||
ft_nlq_get_relevance, ft_nlq_get_docid, ft_nlq_reinit_search
|
ft_nlq_get_relevance, ft_nlq_reinit_search
|
||||||
};
|
};
|
||||||
const struct _ft_vft _ft_vft_boolean = {
|
const struct _ft_vft _ft_vft_boolean = {
|
||||||
ft_boolean_read_next, ft_boolean_find_relevance, ft_boolean_close_search,
|
ft_boolean_read_next, ft_boolean_find_relevance, ft_boolean_close_search,
|
||||||
ft_boolean_get_relevance, ft_boolean_get_docid, ft_boolean_reinit_search
|
ft_boolean_get_relevance, ft_boolean_reinit_search
|
||||||
};
|
};
|
||||||
|
|
||||||
FT_INFO *(*_ft_init_vft[2])(MI_INFO *, uint, byte *, uint, my_bool) =
|
FT_INFO *(*_ft_init_vft[2])(MI_INFO *, uint, byte *, uint, my_bool) =
|
||||||
|
|
Loading…
Add table
Reference in a new issue