我正在尝试用Full Text搜索Full Text ,其中
publisher -> exampleauthor -> test ...
publisher -> exampleauhtor -> testbookname -> another ...

我试过这个查询:

    $this->_query  = "SELECT " . $targetCol . " FROM " . $this->_dbName . "." . $this->_tableName . " WHERE ";
    $this->_query .= "MATCH(publisher) AGAINST('" . $pub . "') AND ";
    $this->_query .= "MATCH(author) AGAINST('" . $aut . "') ";

但这没有正确的结果。
然后我在stackoverflow中进行搜索,发现了以下内容:

    $this->_query  = "SELECT " . $targetCol . " FROM " . $this->_dbName . "." . $this->_tableName . " WHERE ";
    $this->_query .= "MATCH(publisher, author) AGAINST('" . $pub . "', '" . $aut . "')";

但是这一结果也不正确。 publishre in my case看来,这些查询似乎集中在第一列publishre in my case

你能告诉我为什么吗? 还是我的查询符合我的目标?

Thanks in advance

  ask by vahed translate from so

本文未有回复,本站智能推荐: