Dear Flexmonster Team,
I am a user of Flexmonster Data Server and I would like to know if there is a way to add new indexes (data sets) to Data Server from the command line without having to restart the server. I know that Admin Panel has this functionality, but I would like to be able to do it using Flexmonster CLI or another tool.
I found a way to reload an existing index using the command:
http://localhost:9555/admin/indexes/reload/YOUR_INDEX_NAME
but I don’t know how to add a new index in a similar way. Is this possible? If so, please provide instructions on how to do it. If not, do you plan to add such an option to CLI in a future version of Data Server?
I really like Flexmonster Data Server and I find it very useful for analyzing large data sets. I would appreciate your answer to my question and help in solving my problem.
Hello, Mariusz!
Thank you for reaching out to us.
Flexmonster Data Server also offers a similar option for creating indexes. This can be done with the following request:
POST http://localhost:9555/admin/indexes/create/DATASOURCE_TYPE/
Where the DATASOURCE_TYPE
parameter can be json
, csv
, or database
, depending on the data source type of the index you would like to create. The index configuration parameters are passed through the request body. Their names match the parameters from the JSON configuration file, listed on our configurations reference page. The name of the index is passed as the "IndexName"
parameter in the body. For example, the request for creating a JSON index would be the following:
POST http://localhost:9555/admin/indexes/create/json/
{
"IndexName": "INDEX_NAME",
"Path": "PATH_TO_FILE",
"RefreshTime": "10"
}
We are looking forward to hearing your feedback on this feature.
Best Regards,
Maksym
thx
how to remove the index?
Hello, Mariusz!
Thank you for your question.
For removing indexes, you can use the following DELETE
request:
http://localhost:9555/admin/indexes/delete/INDEX_NAME/
Here, the INDEX_NAME
parameter should equal the index's name.
Looking forward to hearing your feedback.
Best Regards,
Maksym
Thank you very much
Hello, Mariusz!
Thank you for your feedback.
Feel free to contact us if more questions arise.
Best Regards,
Maksym