Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
f0e137e5
Commit
f0e137e5
authored
Apr 19, 2002
by
serg@serg.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
follow-up correction patch for 'boolean fulltext search weighting scheme changed'
parent
c64221f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
myisam/ft_boolean_search.c
myisam/ft_boolean_search.c
+4
-2
No files found.
myisam/ft_boolean_search.c
View file @
f0e137e5
...
@@ -322,7 +322,8 @@ void _ftb_climb_the_tree(FTB *ftb, FTB_WORD *ftbw, FT_SEG_ITERATOR *ftsi_orig)
...
@@ -322,7 +322,8 @@ void _ftb_climb_the_tree(FTB *ftb, FTB_WORD *ftbw, FT_SEG_ITERATOR *ftsi_orig)
break
;
break
;
if
(
yn
&
FTB_FLAG_YES
)
if
(
yn
&
FTB_FLAG_YES
)
{
{
ftbe
->
cur_weight
+=
weight
/
ftbe
->
ythresh
;
weight
/=
ftbe
->
ythresh
;
ftbe
->
cur_weight
+=
weight
;
if
(
++
ftbe
->
yesses
==
ythresh
)
if
(
++
ftbe
->
yesses
==
ythresh
)
{
{
yn
=
ftbe
->
flags
;
yn
=
ftbe
->
flags
;
...
@@ -360,7 +361,8 @@ void _ftb_climb_the_tree(FTB *ftb, FTB_WORD *ftbw, FT_SEG_ITERATOR *ftsi_orig)
...
@@ -360,7 +361,8 @@ void _ftb_climb_the_tree(FTB *ftb, FTB_WORD *ftbw, FT_SEG_ITERATOR *ftsi_orig)
}
}
else
else
{
{
ftbe
->
cur_weight
+=
ftbe
->
ythresh
?
weight
/
3
:
weight
;
if
(
ftbe
->
ythresh
)
weight
/=
3
;
ftbe
->
cur_weight
+=
weight
;
if
(
ftbe
->
yesses
<
ythresh
)
if
(
ftbe
->
yesses
<
ythresh
)
break
;
break
;
yn
=
(
ftbe
->
yesses
++
==
ythresh
)
?
ftbe
->
flags
:
0
;
yn
=
(
ftbe
->
yesses
++
==
ythresh
)
?
ftbe
->
flags
:
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment