@@ -975,64 +975,6 @@ public function search($params = array())
975
975
return $ endpoint ->resultOrFuture ($ response );
976
976
}
977
977
978
- /**
979
- * $params['index'] = (list) A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices
980
- * ['type'] = (list) A comma-separated list of document types to search; leave empty to perform the operation on all types
981
- * ['analyzer'] = (string) The analyzer to use for the query string
982
- * ['analyze_wildcard'] = (boolean) Specify whether wildcard and prefix queries should be analyzed (default: false)
983
- * ['default_operator'] = (enum) The default operator for query string query (AND or OR)
984
- * ['df'] = (string) The field to use as default where no field prefix is given in the query string
985
- * ['explain'] = (boolean) Specify whether to return detailed information about score computation as part of a hit
986
- * ['fields'] = (list) A comma-separated list of fields to return as part of a hit
987
- * ['from'] = (number) Starting offset (default: 0)
988
- * ['ignore_indices'] = (enum) When performed on multiple indices, allows to ignore `missing` ones
989
- * ['indices_boost'] = (list) Comma-separated list of index boosts
990
- * ['lenient'] = (boolean) Specify whether format-based query failures (such as providing text to a numeric field) should be ignored
991
- * ['lowercase_expanded_terms'] = (boolean) Specify whether query terms should be lowercased
992
- * ['preference'] = (string) Specify the node or shard the operation should be performed on (default: random)
993
- * ['q'] = (string) Query in the Lucene query string syntax
994
- * ['routing'] = (list) A comma-separated list of specific routing values
995
- * ['scroll'] = (duration) Specify how long a consistent view of the index should be maintained for scrolled search
996
- * ['search_type'] = (enum) Search operation type
997
- * ['size'] = (number) Number of hits to return (default: 10)
998
- * ['sort'] = (list) A comma-separated list of <field>:<direction> pairs
999
- * ['source'] = (string) The URL-encoded request definition using the Query DSL (instead of using request body)
1000
- * ['_source'] = (list) True or false to return the _source field or not, or a list of fields to return
1001
- * ['_source_exclude'] = (list) A list of fields to exclude from the returned _source field
1002
- * ['_source_include'] = (list) A list of fields to extract and return from the _source field
1003
- * ['stats'] = (list) Specific 'tag' of the request for logging and statistical purposes
1004
- * ['suggest_field'] = (string) Specify which field to use for suggestions
1005
- * ['suggest_mode'] = (enum) Specify suggest mode
1006
- * ['suggest_size'] = (number) How many suggestions to return in response
1007
- * ['suggest_text'] = (text) The source text for which the suggestions should be returned
1008
- * ['timeout'] = (time) Explicit operation timeout
1009
- * ['version'] = (boolean) Specify whether to return document version as part of a hit
1010
- * ['body'] = (array|string) The search definition using the Query DSL
1011
- *
1012
- * @param $params array Associative array of parameters
1013
- *
1014
- * @return array
1015
- */
1016
- public function searchExists ($ params = array ())
1017
- {
1018
- $ index = $ this ->extractArgument ($ params , 'index ' );
1019
- $ type = $ this ->extractArgument ($ params , 'type ' );
1020
- $ body = $ this ->extractArgument ($ params , 'body ' );
1021
-
1022
- /** @var callback $endpointBuilder */
1023
- $ endpointBuilder = $ this ->endpoints ;
1024
-
1025
- /** @var \Elasticsearch\Endpoints\SearchExists $endpoint */
1026
- $ endpoint = $ endpointBuilder ('SearchExists ' );
1027
- $ endpoint ->setIndex ($ index )
1028
- ->setType ($ type )
1029
- ->setBody ($ body );
1030
- $ endpoint ->setParams ($ params );
1031
- $ response = $ endpoint ->performRequest ();
1032
-
1033
- return $ endpoint ->resultOrFuture ($ response );
1034
- }
1035
-
1036
978
/**
1037
979
* $params['index'] = (list) A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices
1038
980
* ['type'] = (list) A comma-separated list of document types to search; leave empty to perform the operation on all types
0 commit comments