summaryrefslogtreecommitdiffstats
path: root/model/search_params.go
Commit message (Collapse)AuthorAgeFilesLines
* bug fix: after and before search flags should not be inclusive of the ↵Dmitry Samuylov2018-08-291-2/+9
| | | | | | | | selected date (#9327) * fix for date based flag support to make the after and before flags not inclusive of the selected date * updated search posts tests using date flags to take into account new non inclusive of the selected date behavior of those flags
* Feature/search after before on (#9219)Dmitry Samuylov2018-08-281-15/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | * initial implementation of after, before, on search flags allowing to restrict the search to a specific day or a date range * missed setting beforeDate in SearchParams in one place * fixed condition when only flags are used for search without any plain terms * changed date format used for after/before/on flags to be in ISO8601 format as suggested in PR comments, added a helper function to pad month and day with zeroes allowing the user user either format, with or without leading zeroes * corrected expected compare to date setting for the TestParseDateFilterToTimeISO8601 test * fixed a bug for the scenario when you only have the date flags without any terms, added a couple of tests for that scenario * updated the date filter logic to use parameters to construct the query instead of simply appending strings together, as suggested in the pull request comments * added search unit test using date flags * added a helper function to create a test post with a createat date manually set, updated the test for search using date flags to create test posts with different createat dates to be able to better test the functionality * MM-11817 Add support for after/before/on search flags with Elasticsearch * add support to search posts to perform the search in context of the client's timezone when filtering by createat date using on: after: before: flags * updated tests to match the new signature
* Pr 9039 (#9187)Martin Kraft2018-07-301-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * MM-11065: Allow to search and get archived channels from the API * Fixing more tests * Add some unit tests * Add includeDeleted parameter to session permissions check function * More test fixing * Adding archive channels list in channels search * Add restriction for archived channel edition * Reverting permissions checks modification * Changed the query parameter to include_deleted * Enable search archive channels as true by default * Adding tests for verify search on deleted channels * Allowing to override archive channels during the imports * Fixed test * Search in archive channels from the API must be explicitly requested * Removing includeDeleted parameter from GetChannelByName and GetChannelByNameForTeam * Back to ViewArchivedChannels config * Fixing tests * Reverting GetChannelByName parameter * Add include deleted parameter on GetChannel functions in plugins api * Fixing tests
* general cleanup (#8387)Chris2018-03-071-6/+0
|
* unnamed return (#8170)Chris2018-01-301-6/+2
|
* simplify things (#7735)Chris2017-10-301-12/+2
|
* Adding the ability to disable full text search queries for master (#6102)Corey Hulen2017-04-171-0/+10
|
* PLT-5860 Updated copyright date (#6058)Harrison Healey2017-04-121-1/+1
| | | | | | | | | | | | * PLT-5860 Updated copyright date in about modal * PLT-5860 Updated copyright notice in JSX files * PLT-5860 Updated copyright notice in go files * Fixed misc copyright dates * Fixed component snapshots
* PLT-6057: Fix empty search results with in/from. (#5892)George Goldberg2017-03-291-1/+1
| | | | When search query was empty but in/from was set, search results didn't include posts containing hashtags.
* PLT-2283 Improved trimming of punctuation from hashtags and search terms (#3178)Harrison Healey2016-06-011-2/+6
| | | | | | * Improved trimming of punctuation from hashtags and search terms * Separated punctuation regexes used for hashtags and for search terms
* Recent mention searches now OR terms instead of AND (#2931)Joram Wilander2016-05-091-0/+1
|
* Stopped removing *s from the end of search phrasesHarrison Healey2016-03-041-2/+2
|
* Updated serverside hashtag regex to ignore more punctuation around wordshmhealey2016-01-261-7/+11
|
* Fixing searching for quotationsChristopher Speller2015-11-061-2/+28
|
* Moved logic for searching for posts by multiple users/channels into the sql ↵hmhealey2015-10-261-39/+28
| | | | query
* Changed post searching to allow searching by multiple users/channelshmhealey2015-10-231-37/+58
|
* Added from:, in:, and channel: search modifiershmhealey2015-10-191-0/+130