Search
Description
The search service requires a separate Elastic Search installation and service setup.
Use of the service is justified in the following cases:
Use of DVR-based services: access to TV program archive and EPG VOD
VOD usage
The search is done by:
names of the channels available to the subscriber according to the current tariff plan.
the name of the TV channels available to the subscriber according to the current tariff plan and the depth of the archive.
VOD library elements
Installing
Elasticsearch can be installed either on the server with TMS or separately, depending on available resources.
Below is a guide for installing on Ubuntu:
sudo echo "deb http://deb.packages.tvip.tv/ xenial main" >> /etc/apt/sources.list.d/tms.list
sudo wget --quiet -O - http://deb.packages.tvip.tv/deploy/key.asc | apt-key add -
sudo apt-get update
sudo apt-get install elasticsearch
Edit the options in the /etc/elasticsearch/elasticsearch.yml
configuration file:
discovery.type: single-node
network.host: 0.0.0.0
http.port: 9200
xpack.security.enabled: true
indices.memory.index_buffer_size: "30%"
Enabling elasticsearch autoloading and startup:
sudo systemctl enable elasticsearch
sudo systemctl start elasticsearch
Add a tms user with super user rights and a strong password:
/usr/share/elasticsearch/bin/elasticsearch-users useradd tms -r superuser -p your_password
Edit the TVIP TMS Search Manager configuration according to the Elastic Search settings.
Attention
When installing Elasticsearch on a server with TMS, we recommend setting the RAM usage limit with the -Xmx*g
parameter in the /etc/elasticsearch/jvm.options
file. *
is the value in Gb.