1. Sign up in docker - https://hub.docker.com/account/signup/ |
2. Login and go to docker hub |
3. You will get an mail from docker, you need to verify your mail id first. |
4. Create a repository in docker hub |
5. login into to your server. (Assume you have already installed docker) |
6. $ sudo docker login |
provide your user id / password / email for docker hub |
7. $ sudo docker ps -- to identify the container, whose image you need to push to docker hub |
8. $ sudo docker commit |
9. $ sudo docker images --- Now you can see new entry in the Repository with your public facing repository and a default TAG named 'latest' |
10. $ sudo docker push userid/repository-name --push the image to your repository created in docker hub |
11. Verify this from docker hub repository. |
We'll explore scenarios involving nested queries, aggregations, custom scoring, and hybrid queries that combine multiple search criteria. 1. Nested Queries ElasticSearch Example: ElasticSearch supports nested documents, which allows for querying on nested fields with complex conditions. Query: Find products where the product has a review with a rating of 5 and the review text contains "excellent". { "query": { "nested": { "path": "reviews", "query": { "bool": { "must": [ { "match": { "reviews.rating": 5 } }, { "match": { "reviews.text": "excellent" } } ] } } } } } Redis Limitation: Redis does not support nested documents natively. While you can store nested structures in JSON documents using the RedisJSON module, querying these nested structures with complex condi...
Comments