Class: ROM::Solr::SchemaInfoRelation
- Inherits:
-
Relation
- Object
- HTTP::Relation
- Relation
- ROM::Solr::SchemaInfoRelation
show all
- Defined in:
- lib/rom/solr/relations/schema_info_relation.rb
Instance Method Summary
collapse
Methods inherited from Relation
#count, #log_params_list, #params, #response, #wt
Instance Method Details
#copy_fields ⇒ Object
21
22
23
24
25
26
|
# File 'lib/rom/solr/relations/schema_info_relation.rb', line 21
def copy_fields
with_options(
path: :copyfields,
response_key: :copyFields
)
end
|
#dynamic_field(name) ⇒ Object
35
36
37
38
39
40
|
# File 'lib/rom/solr/relations/schema_info_relation.rb', line 35
def dynamic_field(name)
with_options(
path: "dynamicfields/#{name}",
response_key: :dynamicField
)
end
|
#dynamic_fields ⇒ Object
28
29
30
31
32
33
|
# File 'lib/rom/solr/relations/schema_info_relation.rb', line 28
def dynamic_fields
with_options(
path: :dynamicfields,
response_key: :dynamicFields
)
end
|
#field(name) ⇒ Object
77
78
79
80
81
82
|
# File 'lib/rom/solr/relations/schema_info_relation.rb', line 77
def field(name)
with_options(
path: "fields/#{name}",
response_key: :field
)
end
|
#field_type(name) ⇒ Object
91
92
93
94
95
96
|
# File 'lib/rom/solr/relations/schema_info_relation.rb', line 91
def field_type(name)
with_options(
path: "fieldtypes/#{name}",
response_key: :fieldType
)
end
|
#field_types ⇒ Object
84
85
86
87
88
89
|
# File 'lib/rom/solr/relations/schema_info_relation.rb', line 84
def field_types
with_options(
path: :fieldtypes,
response_key: :fieldTypes
)
end
|
#fields ⇒ Object
70
71
72
73
74
75
|
# File 'lib/rom/solr/relations/schema_info_relation.rb', line 70
def fields
with_options(
path: :fields,
response_key: :fields
)
end
|
#include_dynamic(enabled = true) ⇒ Object
13
14
15
|
# File 'lib/rom/solr/relations/schema_info_relation.rb', line 13
def include_dynamic(enabled = true)
add_params(includeDynamic: Types::Bool[enabled])
end
|
#info ⇒ Object
17
18
19
|
# File 'lib/rom/solr/relations/schema_info_relation.rb', line 17
def info
with_response_key(:schema)
end
|
#schema_name ⇒ Object
63
64
65
66
67
68
|
# File 'lib/rom/solr/relations/schema_info_relation.rb', line 63
def schema_name
with_options(
path: :name,
response_key: :name
)
end
|
#show_defaults(show = true) ⇒ Object
9
10
11
|
# File 'lib/rom/solr/relations/schema_info_relation.rb', line 9
def show_defaults(show = true)
add_params(showDefaults: Types::Bool[show])
end
|
#similarity ⇒ Object
42
43
44
45
46
47
|
# File 'lib/rom/solr/relations/schema_info_relation.rb', line 42
def similarity
with_options(
path: :similarity,
response_key: :similarity
)
end
|
#unique_key ⇒ Object
49
50
51
52
53
54
|
# File 'lib/rom/solr/relations/schema_info_relation.rb', line 49
def unique_key
with_options(
path: :uniquekey,
response_key: :uniqueKey
)
end
|
#version ⇒ Object
56
57
58
59
60
61
|
# File 'lib/rom/solr/relations/schema_info_relation.rb', line 56
def version
with_options(
path: :version,
response_key: :version
)
end
|