From 8a221cc43abd45b40a2914a71953628559a760c5 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Mon, 16 Oct 2017 10:59:13 -0700 Subject: Update documentation for score/complexity search --- app/Filter/BaseComparisonFilter.php | 1 - app/Filter/TaskScoreFilter.php | 1 - 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 ---------------------- -- cgit v1.2.3