Class: Kaltura::KalturaESearchAbstractEntryItem
- Inherits:
-
KalturaESearchEntryBaseItem
- Object
- KalturaObjectBase
- KalturaESearchBaseItem
- KalturaESearchEntryBaseItem
- Kaltura::KalturaESearchAbstractEntryItem
- Defined in:
- lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb
Direct Known Subclasses
KalturaESearchCategoryEntryItem, KalturaESearchEntryItem, KalturaESearchUnifiedItem
Instance Attribute Summary collapse
-
#add_highlight ⇒ Object
Returns the value of attribute add_highlight.
-
#item_type ⇒ Object
Returns the value of attribute item_type.
-
#range ⇒ Object
Returns the value of attribute range.
-
#search_term ⇒ Object
Returns the value of attribute search_term.
Attributes inherited from KalturaObjectBase
#object_type, #related_objects
Instance Method Summary collapse
Methods inherited from KalturaObjectBase
Instance Attribute Details
#add_highlight ⇒ Object
Returns the value of attribute add_highlight.
1086 1087 1088 |
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1086 def add_highlight @add_highlight end |
#item_type ⇒ Object
Returns the value of attribute item_type.
1084 1085 1086 |
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1084 def item_type @item_type end |
#range ⇒ Object
Returns the value of attribute range.
1085 1086 1087 |
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1085 def range @range end |
#search_term ⇒ Object
Returns the value of attribute search_term.
1083 1084 1085 |
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1083 def search_term @search_term end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 |
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1095 def from_xml(xml_element) super if xml_element.elements['searchTerm'] != nil self.search_term = xml_element.elements['searchTerm'].text end if xml_element.elements['itemType'] != nil self.item_type = xml_element.elements['itemType'].text end if xml_element.elements['range'] != nil self.range = KalturaClientBase.object_from_xml(xml_element.elements['range'], 'KalturaESearchRange') end if xml_element.elements['addHighlight'] != nil self.add_highlight = xml_element.elements['addHighlight'].text end end |