Gimmeproxy tech description part 3. ElasticSearch
Dec 29, 2016
ElasticSearch is used to serve faceted queries, i.e. filter proxies by parameters like country, anonymity, supported websites, etc. It’s possible to create the same kind of functionality in plain Redis, but it’s kind of awkward (google ‘redis faceted search’).
Other posts in Gimmeproxy tech series:
Let’s see how to use ElasticSearch with Nodejs. At first we have to connect to ElasticSearch.
|
|
Create or delete index, init mapping
|
|
Now we can add or delete a document
|
|
Or add/remove several documents at once - according to ElasticSearch docs
|
|
Finally we are able to return random item from all ElasticSearch records
|
|
Other posts in Gimmeproxy tech series: