Skip to content

Commit 38c05da

Browse files
committed
[BWC Break] Remove MLT endpoint
1 parent 9f3776a commit 38c05da

File tree

2 files changed

+0
-157
lines changed

2 files changed

+0
-157
lines changed

src/Elasticsearch/Client.php

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -517,60 +517,6 @@ public function exists($params)
517517
return BooleanRequestWrapper::performRequest($endpoint);
518518
}
519519

520-
/**
521-
* $params['id'] = (string) The document ID (Required)
522-
* ['index'] = (string) The name of the index (Required)
523-
* ['type'] = (string) The type of the document (use `_all` to fetch the first document matching the ID across all types) (Required)
524-
* ['boost_terms'] = (number) The boost factor
525-
* ['max_doc_freq'] = (number) The word occurrence frequency as count: words with higher occurrence in the corpus will be ignored
526-
* ['max_query_terms'] = (number) The maximum query terms to be included in the generated query
527-
* ['max_word_len'] = (number) The minimum length of the word: longer words will be ignored
528-
* ['min_doc_freq'] = (number) The word occurrence frequency as count: words with lower occurrence in the corpus will be ignored
529-
* ['min_term_freq'] = (number) The term frequency as percent: terms with lower occurrence in the source document will be ignored
530-
* ['min_word_len'] = (number) The minimum length of the word: shorter words will be ignored
531-
* ['mlt_fields'] = (list) Specific fields to perform the query against
532-
* ['percent_terms_to_match'] = (number) How many terms have to match in order to consider the document a match (default: 0.3)
533-
* ['routing'] = (string) Specific routing value
534-
* ['search_from'] = (number) The offset from which to return results
535-
* ['search_indices'] = (list) A comma-separated list of indices to perform the query against (default: the index containing the document)
536-
* ['search_query_hint'] = (string) The search query hint
537-
* ['search_scroll'] = (string) A scroll search request definition
538-
* ['search_size'] = (number) The number of documents to return (default: 10)
539-
* ['search_source'] = (string) A specific search request definition (instead of using the request body)
540-
* ['search_type'] = (string) Specific search type (eg. `dfs_then_fetch`, `count`, etc)
541-
* ['search_types'] = (list) A comma-separated list of types to perform the query against (default: the same type as the document)
542-
* ['stop_words'] = (list) A list of stop words to be ignored
543-
* ['body'] = (array) A specific search request definition
544-
*
545-
* @param $params array Associative array of parameters
546-
*
547-
* @return array
548-
*/
549-
public function mlt($params)
550-
{
551-
$id = $this->extractArgument($params, 'id');
552-
553-
$index = $this->extractArgument($params, 'index');
554-
555-
$type = $this->extractArgument($params, 'type');
556-
557-
$body = $this->extractArgument($params, 'body');
558-
559-
/** @var callback $endpointBuilder */
560-
$endpointBuilder = $this->endpoints;
561-
562-
/** @var \Elasticsearch\Endpoints\Mlt $endpoint */
563-
$endpoint = $endpointBuilder('Mlt');
564-
$endpoint->setID($id)
565-
->setIndex($index)
566-
->setType($type)
567-
->setBody($body);
568-
$endpoint->setParams($params);
569-
$response = $endpoint->performRequest();
570-
571-
return $endpoint->resultOrFuture($response);
572-
}
573-
574520
/**
575521
* $params['index'] = (string) The name of the index
576522
* ['type'] = (string) The type of the document

src/Elasticsearch/Endpoints/Mlt.php

Lines changed: 0 additions & 103 deletions
This file was deleted.

0 commit comments

Comments
 (0)