Tagged Questions
0
votes
1answer
51 views
How to identify document in MongoDB in Java
I am wondering if MongoDB provide some good schema for identifying documents in the database. Suppose I have initialized a database like this:
public static void main(String[] args) {
MongoClient ...
2
votes
0answers
241 views
mongodb java driver query with regexp number fields
I'm trying to convert this query in java:
db.beni.find({ $where: function() {
return /.*11/.test(this.foglio) || /.*99/.test(this.comune) } })
Where this.foglio is a numeric field and this.comune ...
2
votes
1answer
553 views
retrieve large number of records with mongoDB in a reasonable time
I'm using mongoDB to store a querylog and get some stats about it.
Objects that I store in mongoDB contains the text of the query, the date,
the user, if the user clicked on some results etc etc.
...
5
votes
2answers
1k views
How to update value of specific embedded document, inside an array, of a specific document in MongoDB?
I have the following structure in my document:
{
_id : ObjectId("43jh4j343j4j"),
array : [
{
_arrayId : ObjectId("dsd87dsa9d87s9d7"),
someField : ...