diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-10-16 10:59:13 -0700 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-10-16 10:59:13 -0700 |
commit | 8a221cc43abd45b40a2914a71953628559a760c5 (patch) | |
tree | 82ceaa7128892ec104f89a05686c9b554d10c337 | |
parent | a53ead7e74924579db243bc43125ac52aeb86b91 (diff) |
Update documentation for score/complexity search
-rw-r--r-- | app/Filter/BaseComparisonFilter.php | 1 | ||||
-rw-r--r-- | app/Filter/TaskScoreFilter.php | 1 | ||||
-rw-r--r-- | doc/en_US/search.markdown | 7 |
3 files changed, 7 insertions, 2 deletions
diff --git a/app/Filter/BaseComparisonFilter.php b/app/Filter/BaseComparisonFilter.php index f890342e..ba0c9c5e 100644 --- a/app/Filter/BaseComparisonFilter.php +++ b/app/Filter/BaseComparisonFilter.php @@ -43,7 +43,6 @@ abstract class BaseComparisonFilter extends BaseFilter protected function applyComparisonFilter($field) { $method = $this->parseOperator(); - $this->query->$method($field, $this->value); } } diff --git a/app/Filter/TaskScoreFilter.php b/app/Filter/TaskScoreFilter.php index ca2013bc..2c4067f1 100644 --- a/app/Filter/TaskScoreFilter.php +++ b/app/Filter/TaskScoreFilter.php @@ -32,7 +32,6 @@ class TaskScoreFilter extends BaseComparisonFilter implements FilterInterface public function apply() { $this->applyComparisonFilter(TaskModel::TABLE.'.score'); - return $this; } } diff --git a/doc/en_US/search.markdown b/doc/en_US/search.markdown index befb0e5c..818a19ce 100644 --- a/doc/en_US/search.markdown +++ b/doc/en_US/search.markdown @@ -166,6 +166,13 @@ Attribute: **tag** - Example: `tag:"My tag"` +### Search by score/complexity + +Attribute: **score** or **complexity** + +- `score:>=21` +- `complexity:8` + Activity stream search ---------------------- |