Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
Elasticsearch DSL
Manage
Activity
Members
Labels
Plan
Work items
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Public
Elasticsearch DSL
Commits
bc96c947
Commit
bc96c947
authored
Jun 30, 2015
by
Simonas Šerlinskas
Browse files
Options
Downloads
Plain Diff
Merge branch 'bcremer-remove-references-to-suggester'
parents
d1fd5080
56fecf41
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Search.php
+0
-29
0 additions, 29 deletions
src/Search.php
with
0 additions
and
29 deletions
src/Search.php
+
0
−
29
View file @
bc96c947
...
...
@@ -21,7 +21,6 @@ use ONGR\ElasticsearchDSL\Sort\AbstractSort;
use
ONGR\ElasticsearchDSL\Sort\Sorts
;
use
ONGR\ElasticsearchDSL\Suggester\AbstractSuggester
;
use
Symfony\Component\Serializer\Normalizer\CustomNormalizer
;
/**
* Search object that can be executed by a manager.
*/
...
...
@@ -550,34 +549,6 @@ class Search
->
getBuilder
();
}
/**
* Adds suggester to search.
*
* @param AbstractSuggester $suggester
*
* @return Search
*/
public
function
addSuggester
(
AbstractSuggester
$suggester
)
{
$this
->
getEndpoint
(
'suggest'
)
->
addBuilder
(
$suggester
);
return
$this
;
}
/**
* Returns all contained suggester's.
*
* @return AbstractSuggester[]
*/
public
function
getSuggesters
()
{
return
$this
->
getEndpoint
(
'suggest'
)
->
getBuilder
();
}
/**
* Setter for scroll duration, effectively setting if search is scrolled or not.
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment