mirror of
https://github.com/sismics/docs.git
synced 2024-11-25 15:17:57 +01:00
fix fulltext search with advanced form
This commit is contained in:
parent
f45f2d5df9
commit
af217b4831
@ -167,7 +167,10 @@ angular.module('docs').controller('Document', function ($scope, $rootScope, $tim
|
||||
search += $scope.advsearch.search_simple + ' ';
|
||||
}
|
||||
if (!_.isEmpty($scope.advsearch.search_fulltext)) {
|
||||
search += 'full:' + $scope.advsearch.search_fulltext + ' ';
|
||||
var fulltext = _.map($scope.advsearch.search_fulltext.split(/\s+/), function (full) {
|
||||
return 'full:' + full
|
||||
});
|
||||
search += fulltext.join(' ') + ' ';
|
||||
}
|
||||
if (!_.isEmpty($scope.advsearch.creator)) {
|
||||
search += 'by:' + $scope.advsearch.creator + ' ';
|
||||
|
Loading…
Reference in New Issue
Block a user