Top "Mongodb-java" questions

MongoDB is a scalable, high-performance, open source, document-oriented database.

Case insensitive sorting in MongoDB

How can I sort a MongoDB collection by a given field, case-insensitively? By default, I get A-Z before a-z.

java mongodb sorting mongodb-java
SocketTimeout with opened connection in MongoDB

I've a Java application that performs some aggregations on MongoDB, but sometimes it just hangs and throw a SocketTimeout exception. …

java mongodb mongodb-java socketexception
Mongodb avoid duplicate entries

I am newbie to mongodb. May I know how to avoid duplicate entries. In relational tables, we use primary key …

java mongodb mongodb-java
Query with sort() and limit() in Spring Repository interface

I'm new to Spring Data with MongoDB and would like to have an automagically generated query method inside my MongoRepository …

spring-data mongodb-java
Converting DBObject to Java Object while retrieve values from MongoDB

From my Java application, I have stored the values in mongoDB in ArrayList(set of Java objects). How can I …

java mongodb mongodb-java dbobject
Connecting to MongoDB using jdbc driver

Purpose is to connect MongoDB remote server through JAVA: URL = "jdbc:mongo://" + serverIP + ":" + port+ "/" +databaseName; Class.forName("mongodb.jdbc.MongoDriver"); …

java mongodb jdbc mongodb-java mongo-java-driver
Mongodb inserting doc without _id field

I am newbie to mongodb. I need to insert a doc without the _id field generating automatically. I need to …

mongodb mongodb-java mongodb-query
Difference between createIndex() and ensureIndex() in java using mongodb

What is the difference between createIndex() and ensureIndex() in Java using MongoDB? I googled this but didn't get a satisfactory …

java mongodb mongodb-java
MongoException: Index with name: code already exists with different options

I have a mongodb collection term with following structure { "_id" : "00002c34-a4ca-42ee-b242-e9bab8e3a01f", "terminologyClass" : "…

mongodb spring-data-mongodb mongodb-java mongodb-indexes
MongoDB: No server chosen by ReadPreferenceServerSelector

Recently I am using mongodb java async driver which is newly released. I am writing some simple test codes, which …

mongodb mongodb-java