Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Multiple keywords search #3

Open
DebianRoxx opened this issue Nov 10, 2020 · 0 comments
Open

Multiple keywords search #3

DebianRoxx opened this issue Nov 10, 2020 · 0 comments

Comments

@DebianRoxx
Copy link

DebianRoxx commented Nov 10, 2020

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();
    }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant