Project

General

Profile

Actions

Patch #19108

open

Ability to limit search to last week/month/year

Added by Pierre Pretorius almost 10 years ago. Updated almost 10 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Search engine
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Problem

Redmine search doesn't support or use full text searching features of mysql, postgres, lucene or elasticsearch, etc. which means it unfortunately doesn't scale well. The like %keyword% query basically does a table scan which can easily take 10+ seconds on a medium database with decent hardware (Amazon EC c3.large - high CPU instance).

We tried the elastic search plugin (it's still in early beta) for Redmine but it gave unreliable results and turned out to degrade our user confidence in the search.

Solution

After looking at what other ticketing/issue/case management solutions do, I see many of them include a "past week/month/year" in their search and it usually has a default value of past year or month.

This patch adds a dropdown to select last week/month/year/all time on the search screen and defaults to last year as shown in attached screen shot. I was able to use existing translations except for the newly added "label_last_year". I followed the conventions of the rest of your code base as far as possible. The patch was generated on your 2.6 stable branch.


Files

DATE_LIMIT_SEARCH.diff (4.36 KB) DATE_LIMIT_SEARCH.diff Pierre Pretorius, 2015-02-14 11:30
search.png (14.8 KB) search.png Pierre Pretorius, 2015-02-14 11:47
date_limit_search_2.diff (3.51 KB) date_limit_search_2.diff Pierre Pretorius, 2015-02-14 12:06
Actions

Also available in: Atom PDF