I've been playing around with App Search the last couple of days and so far I am really enjoying it!
I would like to move the search functionality of my PHP-based forum to AS and have played around with adding some documents.
Right now I have a PHP script that gets the data from MySQL, does a bit of manipulation (convert timestamps to ISO etc) and then ship 100 documents at a time to AS/
Now I am wondering, how to do it better / faster / easier using - I don't know - JDBC? Different shipping methods from MySQL to AS?
But I am unsure of what would be the "right" way to do it. As far as I have found out, there is no Logstash in AS? Or is there?
Any tips will be much appreciated! Seeing that this is quite a new (and awesome) product, I could not find any specific App Search related answers or tutorials
Basically, I'd recommend modifying the application layer if possible and send data to elasticsearch in the same "transaction" as you are sending your data to the database.
I've read your article a couple of days ago and like the idea - but I am not so sure it is the easiest way with my existing forum solution: I don't want to alter the base code and have not found the right hooks for CRUD operations that the forum uses
Even if I were to go your proposed route: the question remains, how to add the initial data of round about 1m documents
So I'd read from the DB with a jdbc input plugin and write to App search.
Note that in the past (LS was not really able to do that), I used the exact same application layer I built to do it.
So my app was able to send the current activity to Elasticsearch but also to read the whole database again and reindex everything.
hm ok. let me try to then explain better:
for App Search I needed to install Elastic Search 7.x and have it running, then, download the zip and run it from within the bin/app-search.
The systemd installation required a worker for filebeat and app search itself, but I could not find any information regarding Logstash
So if I were to use the App Search output plugin for Logstash, I would need to actually have Logstash installed somewhere (if it does not come with App Search).
If I do need to set it up separately, then I am asking for the best way to do this.
Same server as App Search? Different server? Do I only need Logstash (as it will then speak to App Search directly)?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.