I want to use Elastic search for full text searching in mu SQL server. As i read I can index my SQL server by elastic search. My questions is about resource usage. As I understood by indexing I must duplicate my entire SQL server database. and I must take both elastic and SQL server sync. Am I wrong? Thanks
1 Answer
Yes, you are right. I also maintain a sql server + elastic environment.
- You need a separate instance of elasticsearch running.
- You will have to index / insert all your existing data from sql server to elastic. There are libraries for almost any language to easily insert data.
- You will have to sync these two in order to keep the data up to date.
- In theory you only need 1 instance / node of elastic running, but it is recommended to have a full cluster, due to failover, etc.
4 Comments
Val
And worth noting that the third point is probably the less trivial one.
razi marjani
Thanks. Can I use specific table of my SQL server instead of all of it for indexing?
avolkmann
Yes you decide yourself what to index.
Val
And this may help: stackoverflow.com/questions/37613611/…