In the documentation it says that you cannot mix RT with Plain indexes which is why I’m getting the error: FATAL: 'data_dir' cannot be mixed with index declarations in '/etc/manticoresearch/manticore.conf'
Where do I create the plain index(es) for my CSV file(s) so that I can eventually attach them to my RT index? When I put the source and index declarations in the same manticore.conf file, I get the error above. Do I need to literally duplicate the manticore file and set different values for data_dir, logs, ports, etc… in searchd and have a different config for the plain index(es)?
Is there a way to do this without having to shutdown the daemon? Maybe running on separate servers or possibly running the plain-mode version in a docker instance?
Just to try it out, I copied/pasted default manticore config file and added the source/index for my plain index. The docker instance shuts down with an exit 0. I have to remove the source/index from the config in order to get it to run properly. I understand that RT-Mode is the default, I don’t see any settings that allow you to switch from RT to Plain.
I’m upping this topic because I stuck with the same situation and as I see documentation and anwsers in this topic doesn’t make it clear.
We got into situation where we need to reindex 35M records. Our tool we are using to occasionally update index got stuck in such ammount (it reads about 1000 records from DB and updates index by id via REPLACE). So I decided to go through creating plain index at first (it is faster - takes about 2 1-1,5 hours to create) and attach to rt-index with truncate. We did this some years earlier (on v4 of Manticore as I remember).
Nowadays I wanted to update this for the latest v6.3 and wanted to make it using “best practices”. As these practices suggest - it is better to have separate configs for plain mode and rt mode. We have a “mixed” config for now (with rt-index but no data_dir defined in config) and as I found out it is called plain mode (correct me if I’m wrong).
So I created plain.conf (with source and index[type=plain] only defined). docker run ... indexer --all successfully creates plain index in my volume.
Next step as suggested earlier in this thread (and documentation) states that at first I need to ATTACH plain table to rt table before I can IMPORT it. But as hatemjaber wrote, I got an error ERROR 1064 (42000): no such table.
So my question is - Do I need to define RT-index in plain.conf also? Because my RT-indicies are defined in rt.conf