KanboardSearch icon indicating copy to clipboard operation
KanboardSearch copied to clipboard

Multiple keywords search

Open DebianRoxx opened this issue 5 years ago • 0 comments

It will be nice to split keywords search in order to have a more powerful search engine but it seems complicated to accomplish this nicely ?

    protected function getTaskIdsWithGivenDescription()
    {
        if($this->config->get('description_search') == 1) {
            return $this->db
                ->table(TaskModel::TABLE)
##FOREACH $this->value :-/
                ->ilike(TaskModel::TABLE . '.description', '%' . $this->value . '%')
##END FOREACH
                ->findAllByColumn(TaskModel::TABLE . '.id');
        }
        return array();
    }

DebianRoxx avatar Nov 10 '20 09:11 DebianRoxx