Skip to main content

Posts

MongoDb : CRUD Operations Using Java

This article will show you how to use Java to perform CRUD operations on MongoDB records. If you're new to MongoDB, we recommend starting with the Getting Started With MongoDB tutorial. To begin, we'll establish a Person and Person Images table (a collection in MongoDB) to make CRUD operations in MongoDB easier. Define Data Structure The following is the data structure of the Person  and  Person Images  table (collection in MongoDB). Person id Int (primary) username String first_name String last_name String email String description String birthdate Date country String state String city String lat String lang Strin

Getting Started With Elasticsearch

Elasticsearch is open source search system based of Apache Lucene. this is a brief introduction, you can find more information on Elasticsearch Official Site or   Wiki . What are features of Elasticsearch? Here are list of features of Elasticsearch. Real Time Search and Analytic . Distributed Data (Scales Horizontally)  Based on Apache Lucene High Availability Full Text Search JSON Based Documents RESTful API Multi Facets Geo Location Search Open Source How to install ElasticSearch? Download the latest version from elasticsearch.org/download . Then unzip it or use following command in console to download Elasticsearch. curl -L -O http://download.elasticsearch.org/PATH/TO/LATEST/$VERSION.zip unzip elasticsearch-$VERSION.zip cd elasticsearch-$VERSION Now move to unzip folder and run following command {elasticsearch unzip folder path}/bin/elasticsearch It will start Elasticsearch How to use ElasticSearch? To interactive with data usi

AngularJs Tutorial: Getting Started

This tutorial will help you to create a dynamic web application using power of AngularJs. ·   What is AngularJs AngularJs is javascript MVC framework (maintained by Google) which molds static HTML application to dynamic web application. That was a brief introduction, you can find more information on Wiki and AngularJS Site . AngularJs follows MVC pattern to separate out model from view and manage it by controller. See this image Goal of using AngularJs is to convert static HTML template to dynamic (Angular) template.   ·   How to convert static template to dynamic (Angular) Template Now consider the following static HTML template which contain list of movies title. <html> <head></head> <body>   <h1>Upcoming Movies</h1> <ul>     <li>       <span>Godzilla</span>     </li> <li>       <span>Batman vs Superman</span>     </li> <li>       <span>Sta

MongoDB: Getting Started With CRUD Operations

MongoDB is a No-SQL open source database system that stores information in documents. MongoDB was created with excellent performance and accessibility in mind. A document is a collection of fields and value pair combinations that are stored in BSON (binary representation of JSON records), which is the native data type in most languages. MongoDB uses collections to hold groups of documents. Now let’s see the basic operations that can be handled in MongoDB.           Create           Read           Update          Delete collectively called the "CRUD operation" Create Operation MongoDB performs atomic creation operations on single documents. It adds a new document to the selected collection. db .{ collection_name }. insert ({ field => value , field => value , field => value , }); The value could be a simple datatype or something more complex (document or array). The Crea

Subscribe for latest tutorial updates

* indicates required