aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/LinkFilter.php
Commit message (Collapse)AuthorAgeFilesLines
* namespacing: \Shaarli\Bookmark\LinkFilterVirtualTam2019-01-121-455/+0
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* namespacing: \Shaarli\Bookmark\LinkDBVirtualTam2019-01-121-0/+2
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* lint: apply phpcbf to application/VirtualTam2018-12-021-13/+12
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* PSR: use elseif instead of else ifArthurHoaro2018-02-281-4/+4
| | | | See https://www.php-fig.org/psr/psr-2/\#51-if-elseif-else
* Shaarli's translationArthurHoaro2017-10-221-1/+7
| | | | | | | | | * translation system and unit tests * Translations everywhere Dont use translation merge It is not available with PHP builtin gettext, so it would have lead to inconsistency.
* wildcard tag search supportWilli Eggeling2017-08-301-47/+84
| | | | | | | - when searching for tags you can now include '*' as wildcard placeholder - new search reduces overall overhead when filtering for tags - fixed combination with description tag search ('#' prefix) - tests added
* Using only one form in linklist.html + adding untaggedonly filter - fix #885Lucas Cimon2017-07-301-16/+25
|
* Empty tag search will look for not tagged linksArthurHoaro2017-05-251-0/+30
| | | | | | | | | | | Fixes #784 From now, searching for tags with an empty value will return only not tagged links, with the search bar showing `x results [not tagged]`. Note that using the api, the searchtags request parameter must be set to `false` to get the same result. - [ ] Update API doc
* Update LinkFilter to be able to filter only public linksArthurHoaro2017-01-161-23/+37
| | | | | | No update regarding the UI or the API for now Fixes #758
* Fixes presence of empty tags for private tags and in search resultsArthurHoaro2017-01-031-1/+1
| | | | | | | * Private tags: make sure empty tags are properly filtered * Search results: * Use preg_split instead of function combination * Add normalize_spaces to remove extra whitespaces displaying empty tags search
* Add a persistent 'shorturl' key to all linksArthurHoaro2016-12-121-1/+1
| | | | | | | All existing link will keep their permalinks. New links will have smallhash generated with date+id. The purpose of this is to avoid collision between links due to their creation date.
* Apply the new ID system accros the whole codebaseArthurHoaro2016-12-121-20/+17
|
* Hashtag systemArthurHoaro2016-06-061-2/+31
| | | | | | * Hashtag are auto-linked with a filter search * Supports unicode * Compatible with markdown (excluded in code blocks)
* Fix error when filtering search tagsD Low2016-04-141-1/+1
| | | | | | | | Arrays are key-value maps. We should reindex the array after a filter since we are using the key and count to do array access in filterTags. An example would be searching for "foo, bar", after the array filter, our array is actually (0 -> foo, 2 -> bar) which will cause an error when trying to access $searchtags[1].
* Refactor filter in LinkDBArthurHoaro2016-03-251-1/+13
| | | | | | | | * search type now carried by LinkDB in order to factorize code between different search sources. * LinkDB->filter split in 3 method: filterSearch, filterHash, filterDay (we know what type of filter is needed). * filterHash now throw a LinkNotFoundException if it doesn't exist: internal implementation choice, still displays a 404. * Smallhash regex has been rewritten. * Unit tests update
* Allow crossed search between terms and tagsArthurHoaro2016-02-281-4/+23
| | | | | | | * Partial fix of #449 * Current use case: search term + click on tag. * LinkFilter now returns all links if no filter is given. * Unit tests.
* Support text search across link fields.ArthurHoaro2016-02-151-25/+23
|
* Improved search: combine AND, exact terms and exclude search.ArthurHoaro2016-02-151-24/+36
|
* Add exclusion in tag searchArthurHoaro2016-02-151-8/+22
| | | | | | | | | | | * Searching '-mytag' will now exlude all shaares with 'mytag' tag. * All tags starting with a '-' are renamed without it (through the Updater). * Unit tests. Minor code changes: * LinkDB->filter() can now take no parameters (get all link depending on logged status). * tagsStrToArray() is now static and filters blank tags.
* Introduce the Updater class whichArthurHoaro2016-02-151-1/+0
| | | | | | | * contains methods designed to be run once. * is able to upgrade the datastore or the configuration. * is based on methods names, stored in a text file with ';' separator (updates.txt). * begins with existing function 'mergeDeprecatedConfigFile()' (options.php).
* Implemented searching for a phrase in double-quotes or all words in no ↵Florian Voigt2016-02-011-13/+32
| | | | | | particular order. + unit tests
* Link filter refactoringArthurHoaro2016-01-061-0/+259
* introduce class LinkFilter to handle link filter operation (and lighten LinkDB). * handle 'private only' in filtering. * update template to prefill search fields with current search terms. * coding style. * unit test (mostly move from LinkDB to LinkFilter). PS: preparation for #358 #315 and 'AND' search.