Module: Eson::Shared::MoreLikeThis

Extended by:
API
Defined in:
lib/eson/shared/core/more_like_this.rb

Overview

Note:

The request supports the following parameters: id, type, mlt_fields, like_text, percent_terms_to_match, min_term_freq, max_query_terms, stop_words, min_doc_freq, max_doc_freq, min_word_len, max_word_len, boost_terms, boost, analyzer, scroll, scroll_id, timeout, from, size, sort, track_scores, highlight, fields, script_fields, indices_boost, explain, version, min_score

Note:

The request declares the following parameters as source parameters: timeout, from, size, sort, track_scores, highlight, fields, script_fields, indices_boost, explain, version, min_score

Note:

The request does not operate on multiple indices.

Note:

Requests using this API have the following properties:

Instance Method Summary collapse

Methods included from API

multi_types, no_indices

Methods included from Chainable

#chainable, #extendable

Instance Method Details

#multi_indexfalse

The request does not operate on multiple indices.

Returns:

  • (false)


13
# File 'lib/eson/shared/core/more_like_this.rb', line 13

multi_index false

#parametersArray<String>

The request supports the following parameters: id, type, mlt_fields, like_text, percent_terms_to_match, min_term_freq, max_query_terms, stop_words, min_doc_freq, max_doc_freq, min_word_len, max_word_len, boost_terms, boost, analyzer, scroll, scroll_id, timeout, from, size, sort, track_scores, highlight, fields, script_fields, indices_boost, explain, version, min_score

Returns:

  • (Array<String>)

    The parameters



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/eson/shared/core/more_like_this.rb', line 16

parameters :id,
:type,
:mlt_fields,
:like_text,
:percent_terms_to_match,
:min_term_freq,
:max_query_terms,
:stop_words,
:min_doc_freq,
:max_doc_freq,
:min_word_len,
:max_word_len,
:boost_terms,
:boost,
:analyzer,
:scroll,
:scroll_id,
:timeout,
:from,
:size,
:sort,
:track_scores,
:highlight,
:fields,
:script_fields,
:indices_boost,
:explain,
:version,
:min_score

#source_paramArray<String>

The request declares the following parameters as source parameters: timeout, from, size, sort, track_scores, highlight, fields, script_fields, indices_boost, explain, version, min_score

Returns:

  • (Array<String>)

    The source parameters



47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/eson/shared/core/more_like_this.rb', line 47

source_param :timeout,
:from,
:size,
:sort,
:track_scores,
:highlight,
:fields,
:script_fields,
:indices_boost,
:explain,
:version,
:min_score