Latest Posts

MongoDB exists example using Mongo Shell and Java Driver

This checks the document for the existence of the fields in the specified collection. The syntax is { field: { $exists: <boolean> } } The operator accepts the boolean values of either true or false…..

MongoDB Bulk Insert – MongoDB insertMany

We will look into MongoDB bulk insert today. Multiple documents can be inserted at a time in MongoDB using bulk insert operation where an array of documents is passed to the insert method as parameter…..

Java Design Patterns PDF eBook Free Download (130 Pages)

I have written a lot about Java Design Patterns and I got a lot of requests to create an eBook for them. Well, I spent some time in last few weeks and created the PDF….

Fixing Trinidad IE 11 Partial Page Request (PPR) Issue / Support All IE Browsers

Trinidad 1.2.14 is MyFaces implementation for JSF 1.2 specification. It’s mainly released by Apache MyFaces and it’s considered last official release that you can download from Apache MyFaces Trinidad site. Actually, Trinidad library is a….

MongoDB sort

MongoDB sort method sorts the document in either ascending or descending order as specified by the user in the input argument. MongoDB sort The syntax for MongoDB sort method is: { $sort:{<field1>:<sort order>……..}} sort order….

Implement Website Designs Faster With These Amazingly Useful CSS Tools

CSS is great for creating beautiful websites, but making sure that it works and looks the same across all browsers and devices is a real pain. Developers spend more time fixing bugs for various browsers….

MongoDB findAndModify() example

MongoDB findAndModify() method modifies and returns a single document based upon the selection criteria entered. The returned document does not show the updated content by default. If the records matching the criteria does not exist….

MongoDB findOne Example

MongoDB findOne() method returns only one document that satisfies the criteria entered. If the criteria entered matches for more than one document, the method returns only one document according to natural ordering, which reflects the….

MongoDB find()

There are two ways to find an item from the MongoDB database. One is through MongoDB find method and the other is through findOne method. Let’s go through find() method first from the shell and….

Integrate Apache Pluto With Lucene Search Engine Example Tutorial

Knowledge information retrieval isn’t a luxury requirement that your application may or may not provide. Best applications are those that are providing cross-site search, so it’s minimize the efforts that you spent when trying to….

Generic selectors
Exact matches only
Search in title
Search in content
Search in posts
Search in pages