Bug #75202 wrong st_mysql_ftparser_boolean_info example in writing fulltext plugin doc

Submitted: 13 Dec 2014 14:01 Modified: 29 Jan 2015 3:55
Reporter: 智史 三谷 Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Documentation Severity:S3 (Non-critical)
Version:5.7 OS:Any
Assigned to: Paul DuBois CPU Architecture:Any

[13 Dec 2014 14:01] 智史 三谷
Description:
http://dev.mysql.com/doc/refman/5.7/en/writing-full-text-plugins.html

----
  MYSQL_FTPARSER_BOOLEAN_INFO bool_info=
    { FT_TOKEN_WORD, 0, 0, 0, 0, ' ', 0 };
----

argument 4 should be interger. position is important for InnoDB fulltext search.

How to repeat:
typedef struct st_mysql_ftparser_boolean_info
{
  enum enum_ft_token_type type;
  int yesno;
  int weight_adjust;
  char wasign;
  char trunc;
  int position;
  /* These are parser state and must be removed. */
  char prev;
  char *quot;
} MYSQL_FTPARSER_BOOLEAN_INFO;

Suggested fix:
Fix document.
[14 Dec 2014 4:09] 智史 三谷
st_mysql_ftparser_boolean_info changed 5.7.
[15 Dec 2014 11:59] MySQL Verification Team
Hello!

Thank you for the report.
I assume that you meant argument 6 and not 4. 
if definition has position as argument #6 (starting with 1), then it should be integer in example.

Thanks,
Umesh
[16 Dec 2014 5:20] 智史 三谷
Hi Umesh,
you're right. thanks Verified.
[29 Jan 2015 3:55] Paul DuBois
Thank you for your bug report. This issue has been addressed in the documentation. The updated documentation will appear on our website shortly.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.063 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.