Đọc dữ liệu với Kotlin và Elasticsearch API Client
Tiếp nối loạt bài về Elasticsearch, trong bài hôm nay chúng ta sẽ tìm hiểu hai phương pháp tạo request với Kotlin và thư viên Elasticsearch API Client.
About technology stuff that piqued my interest
Tiếp nối loạt bài về Elasticsearch, trong bài hôm nay chúng ta sẽ tìm hiểu hai phương pháp tạo request với Kotlin và thư viên Elasticsearch API Client.
In Kotlin, Elasticsearch API Client is the recommended library to interact with Elasticsearch cluster. Today, e will find out how to use it to query data.
Query boosting là một tính năng thú vị trong Elasticsearch. Nó cho phép ta điều khiển độ ảnh hưởng của từng query lên điểm số cuối cùng của các văn bản
Query boosting is an interesting technique in Elasticsearch. It lets you control the impact of each query on the final score of matching documents
Đôi khi ta cần phải thay đổi Datadog metric sinh bởi library của bên thứ ba. Lúc này, interface MeterFilter là một công cụ hữu ích.
Sometimes, we need to modify Datadog metrics emitted by a third party libraries. In that case, the MeterFilter interface is a powerful tool.
Kotlin hỗ trợ ta implement pattern Delegation. Nó giúp ta không phải viết nhiều code. Nhưng ta phải chú ý tới những hạn chế của tính năng này.
Kotlin has great support for implementing the delegation pattern. But we must be mindful of its limitations and pitfalls.
Null safety trong Kotlin có vẻ đã bổ sung thêm kiểu dữ liệu cho JVM. Trong bài hôm nay, ta sẽ tìm hiểu xem tính năng đó thực ra được implement bằng cách nào.
At first glances, null safety in Kotlin seems to add new types to the JVM. In this article, we will take a deep dive and see how it is actually implemented.