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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
163f0c85
Commit
163f0c85
authored
Nov 22, 2001
by
serg@serg.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ft_dump re-enabled, manual fixes
parent
6aa11851
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
30 deletions
+19
-30
Docs/manual.texi
Docs/manual.texi
+13
-8
myisam/Makefile.am
myisam/Makefile.am
+2
-2
myisam/ft_dump.c
myisam/ft_dump.c
+4
-20
No files found.
Docs/manual.texi
View file @
163f0c85
...
@@ -33861,18 +33861,18 @@ to the word, not prepended.
...
@@ -33861,18 +33861,18 @@ to the word, not prepended.
And here are some examples:
And here are some examples:
@table @code
@table @code
@item
``apple banana''
@item
apple banana
find rows that contain at least one of these words.
find rows that contain at least one of these words.
@item
``+apple +juice''
@item
+apple +juice
... both words
... both words
@item
``+apple macintosh''
@item
+apple macintosh
... word ``apple'', but rank it higher if it also contain ``macintosh''
... word ``apple'', but rank it higher if it also contain ``macintosh''
@item
``+apple -macintosh''
@item
+apple -macintosh
... word ``apple'' but not ``macintosh''
... word ``apple'' but not ``macintosh''
@item
``+gates +(>hell <bill)''
@item
+gates +(>hell <bill)
... ``hell'' and ``gates'', or ``bill'' and ``gates'' (in any
... ``hell'' and ``gates'', or ``bill'' and ``gates'' (in any
order), but rank ``gates to hell'' higher than ``bill gates''.
order), but rank ``gates to hell'' higher than ``bill gates''.
@item
``apple*''
@item
apple*
... ``apple'', ``apples'', ``applesause'', and ``applet''
... ``apple'', ``apples'', ``applesause'', and ``applet''
@end table
@end table
...
@@ -33882,7 +33882,6 @@ order), but rank ``gates to hell'' higher than ``bill gates''.
...
@@ -33882,7 +33882,6 @@ order), but rank ``gates to hell'' higher than ``bill gates''.
* Fulltext TODO:: Full-text Search TODO
* Fulltext TODO:: Full-text Search TODO
@end menu
@end menu
@node Fulltext Restrictions, Fulltext Fine-tuning, Fulltext Search, Fulltext Search
@node Fulltext Restrictions, Fulltext Fine-tuning, Fulltext Search, Fulltext Search
@subsection Fulltext Restrictions
@subsection Fulltext Restrictions
...
@@ -45844,12 +45843,18 @@ Our TODO section contains what we plan to have in 4.0. @xref{TODO MySQL 4.0}.
...
@@ -45844,12 +45843,18 @@ Our TODO section contains what we plan to have in 4.0. @xref{TODO MySQL 4.0}.
@itemize @bullet
@itemize @bullet
@item
@item
Added @file{myisam/ft_dump} utility for low-level inspection
of @code{FULLTEXT} indexes.
@item
Fixed bug in @code{DELETE ... WHERE ... MATCH ...}
Fixed bug in @code{DELETE ... WHERE ... MATCH ...}
@item
@item
Added support for @code{MATCH ... AGAINST(... IN BOOLEAN MODE)}.
Added support for @code{MATCH ... AGAINST(... IN BOOLEAN MODE)}.
@strong{Note: you have to rebuild your tables with
@code{ALTER TABLE tablename TYPE=MyISAM} to be
able to use boolean fulltext search}.
@item
@item
@code{LOCATE()} and @code{INSTR()} are case sensitive if neither
@code{LOCATE()} and @code{INSTR()} are case sensitive if neither
argument is a binary string.
binary strings.
argument is a binary string.
@item
@item
Fixed core dump bug in @code{UPDATE ... ORDER BY }.
Fixed core dump bug in @code{UPDATE ... ORDER BY }.
@item
@item
myisam/Makefile.am
View file @
163f0c85
...
@@ -25,14 +25,14 @@ bin_PROGRAMS = myisamchk myisamlog myisampack
...
@@ -25,14 +25,14 @@ bin_PROGRAMS = myisamchk myisamlog myisampack
myisamchk_DEPENDENCIES
=
$(LIBRARIES)
myisamchk_DEPENDENCIES
=
$(LIBRARIES)
myisamlog_DEPENDENCIES
=
$(LIBRARIES)
myisamlog_DEPENDENCIES
=
$(LIBRARIES)
myisampack_DEPENDENCIES
=
$(LIBRARIES)
myisampack_DEPENDENCIES
=
$(LIBRARIES)
noinst_PROGRAMS
=
mi_test1 mi_test2 mi_test3
#ft_test1 ft_eval ft_dump
noinst_PROGRAMS
=
mi_test1 mi_test2 mi_test3
ft_dump
#ft_test1 ft_eval
noinst_HEADERS
=
myisamdef.h fulltext.h ftdefs.h ft_test1.h ft_eval.h
noinst_HEADERS
=
myisamdef.h fulltext.h ftdefs.h ft_test1.h ft_eval.h
mi_test1_DEPENDENCIES
=
$(LIBRARIES)
mi_test1_DEPENDENCIES
=
$(LIBRARIES)
mi_test2_DEPENDENCIES
=
$(LIBRARIES)
mi_test2_DEPENDENCIES
=
$(LIBRARIES)
mi_test3_DEPENDENCIES
=
$(LIBRARIES)
mi_test3_DEPENDENCIES
=
$(LIBRARIES)
#ft_test1_DEPENDENCIES= $(LIBRARIES)
#ft_test1_DEPENDENCIES= $(LIBRARIES)
#ft_eval_DEPENDENCIES= $(LIBRARIES)
#ft_eval_DEPENDENCIES= $(LIBRARIES)
#
ft_dump_DEPENDENCIES= $(LIBRARIES)
ft_dump_DEPENDENCIES
=
$(LIBRARIES)
libmyisam_a_SOURCES
=
mi_open.c mi_extra.c mi_info.c mi_rkey.c
\
libmyisam_a_SOURCES
=
mi_open.c mi_extra.c mi_info.c mi_rkey.c
\
mi_rnext.c mi_rnext_same.c
\
mi_rnext.c mi_rnext_same.c
\
mi_search.c mi_page.c mi_key.c mi_locking.c
\
mi_search.c mi_page.c mi_key.c mi_locking.c
\
...
...
myisam/ft_dump.c
View file @
163f0c85
...
@@ -38,10 +38,6 @@ int main(int argc,char *argv[])
...
@@ -38,10 +38,6 @@ int main(int argc,char *argv[])
MI_INFO
*
info
;
MI_INFO
*
info
;
char
buf
[
MAX
],
buf2
[
MAX
],
buf_maxlen
[
MAX
],
buf_min_gws
[
MAX
];
char
buf
[
MAX
],
buf2
[
MAX
],
buf_maxlen
[
MAX
],
buf_min_gws
[
MAX
];
ulong
total
=
0
,
maxlen
=
0
,
uniq
=
0
,
max_doc_cnt
=
0
;
ulong
total
=
0
,
maxlen
=
0
,
uniq
=
0
,
max_doc_cnt
=
0
;
#ifdef EVAL_RUN
uint
cnt
;
double
sum
,
sum2
,
suml
;
#endif
/* EVAL_RUN */
struct
{
MI_INFO
*
info
;
}
aio0
,
*
aio
=&
aio0
;
/* for GWS_IN_USE */
struct
{
MI_INFO
*
info
;
}
aio0
,
*
aio
=&
aio0
;
/* for GWS_IN_USE */
MY_INIT
(
argv
[
0
]);
MY_INIT
(
argv
[
0
]);
...
@@ -72,6 +68,7 @@ int main(int argc,char *argv[])
...
@@ -72,6 +68,7 @@ int main(int argc,char *argv[])
if
(
query
)
if
(
query
)
{
{
#if 0
FT_DOCLIST *result;
FT_DOCLIST *result;
int i;
int i;
...
@@ -88,6 +85,9 @@ int main(int argc,char *argv[])
...
@@ -88,6 +85,9 @@ int main(int argc,char *argv[])
printf("%9qx %20.7f\n",result->doc[i].dpos,result->doc[i].weight);
printf("%9qx %20.7f\n",result->doc[i].dpos,result->doc[i].weight);
ft_nlq_close_search(result);
ft_nlq_close_search(result);
#else
printf
(
"-e option is disabled
\n
"
);
#endif
}
}
else
else
{
{
...
@@ -99,19 +99,11 @@ int main(int argc,char *argv[])
...
@@ -99,19 +99,11 @@ int main(int argc,char *argv[])
keylen
=*
(
info
->
lastkey
);
keylen
=*
(
info
->
lastkey
);
#if HA_FT_WTYPE == HA_KEYTYPE_FLOAT
#if HA_FT_WTYPE == HA_KEYTYPE_FLOAT
#ifdef EVAL_RUN
mi_float4get
(
weight
,
info
->
lastkey
+
keylen
+
2
);
#else
/* EVAL_RUN */
mi_float4get
(
weight
,
info
->
lastkey
+
keylen
+
1
);
mi_float4get
(
weight
,
info
->
lastkey
+
keylen
+
1
);
#endif
/* EVAL_RUN */
#else
#else
#error
#error
#endif
#endif
#ifdef EVAL_RUN
cnt
=*
(
byte
*
)(
info
->
lastkey
+
keylen
);
#endif
/* EVAL_RUN */
snprintf
(
buf
,
MAX
,
"%.*s"
,(
int
)
keylen
,
info
->
lastkey
+
1
);
snprintf
(
buf
,
MAX
,
"%.*s"
,(
int
)
keylen
,
info
->
lastkey
+
1
);
casedn_str
(
buf
);
casedn_str
(
buf
);
total
++
;
total
++
;
...
@@ -119,11 +111,6 @@ int main(int argc,char *argv[])
...
@@ -119,11 +111,6 @@ int main(int argc,char *argv[])
if
(
count
||
stats
)
if
(
count
||
stats
)
{
{
doc_cnt
++
;
doc_cnt
++
;
#ifdef EVAL_RUN
sum
+=
cnt
;
sum2
+=
cnt
*
cnt
;
suml
+=
cnt
*
log
(
cnt
);
#endif
/* EVAL_RUN */
if
(
strcmp
(
buf
,
buf2
))
if
(
strcmp
(
buf
,
buf2
))
{
{
if
(
*
buf2
)
if
(
*
buf2
)
...
@@ -145,9 +132,6 @@ int main(int argc,char *argv[])
...
@@ -145,9 +132,6 @@ int main(int argc,char *argv[])
}
}
}
}
strcpy
(
buf2
,
buf
);
strcpy
(
buf2
,
buf
);
#ifdef EVAL_RUN
sum
=
sum2
=
suml
=
#endif
/* EVAL_RUN */
doc_cnt
=
0
;
doc_cnt
=
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