← Back to team overview

maria-developers team mailing list archive

Re: MATCH returns -1

 

When I debugged the code I found this

  if (ft_handler == NULL)

    DBUG_RETURN(-1.0);

And that is why It returns -1

I guess ft_handler is null, it is set by init_search

but I am not getting which function is calling init_search

Regards

sachin


On Wed, Jun 8, 2016 at 12:27 PM, Alexander Barkov <bar@xxxxxxxxxxx> wrote:

>   Hello Sergei,
>
>
> This script:
>
> DROP TABLE IF EXISTS t1;
> CREATE TABLE t1 (a VARCHAR(30), b DOUBLE);
> INSERT INTO t1 values('aaaa bbbb cccc dddd', MATCH (a) AGAINST('bbbb' IN
> BOOLEAN MODE));
> SELECT * FROM t1;
>
> returns:
>
> +---------------------+------+
> | a                   | b    |
> +---------------------+------+
> | aaaa bbbb cccc dddd |   -1 |
> +---------------------+------+
>
>
> What does this -1 mean?
>
> Is this a bug?
>
>
> Thanks!
>
> _______________________________________________
> Mailing list: https://launchpad.net/~maria-developers
> Post to     : maria-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~maria-developers
> More help   : https://help.launchpad.net/ListHelp
>

References