Class: LogMagic::SearchkickExplainer
Defined Under Namespace
Classes: AnalyzerExplainerSection, BoostExplainerSection, CustomAnalyzerHover, DisMaxExplainerSection, FuzzyTranspositionsSection, MatchExplainerSection, MaxExpansionsSection, QueryExplainerSection, SettingsExplainerSection, UnderscoreAllExplainerSection
Class Method Summary
collapse
Instance Method Summary
collapse
#initialize, #start
#enriche, #initialize, #match_regex, #rendered_template, #template_dir, #template_path
Methods included from JSONUtils
#parse_json, #pretty_print_json, #query_hash
Class Method Details
.port_number ⇒ Object
6
7
8
|
# File 'lib/log_magic/explainers/searchkick_explainer.rb', line 6
def self.port_number
7467
end
|
Instance Method Details
#elasticsearch_url ⇒ Object
14
15
16
|
# File 'lib/log_magic/explainers/searchkick_explainer.rb', line 14
def elasticsearch_url
@persistance_layer.retrieve_value(@uuid, 'elasticsearch_url')
end
|
#explained_query ⇒ Object
22
23
24
25
26
|
# File 'lib/log_magic/explainers/searchkick_explainer.rb', line 22
def explained_query
@query_explainer = QueryExplainerSection.new(query_json)
settings_explainer_section.enriche_query_json
@query_explainer
end
|
#query_json ⇒ Object
10
11
12
|
# File 'lib/log_magic/explainers/searchkick_explainer.rb', line 10
def query_json
@persistance_layer.retrieve_value(@uuid, 'query_json')
end
|
#settings_explainer_section ⇒ Object
18
19
20
|
# File 'lib/log_magic/explainers/searchkick_explainer.rb', line 18
def settings_explainer_section
SettingsExplainerSection.new(elasticsearch_url, @query_explainer)
end
|
#template_name ⇒ Object
28
29
30
|
# File 'lib/log_magic/explainers/searchkick_explainer.rb', line 28
def template_name
'searchkick.haml'
end
|