A
A
Alexander Wolf2014-02-24 22:50:49
MongoDB
Alexander Wolf, 2014-02-24 22:50:49

Search in mongoDB

Hey! I got a little misunderstanding. Why is that?
mUhaObP.jpg
Active is not found in indexes.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Gusev, 2014-02-25
@illi

Possibly incorrect query construction
Try $or
db.shops.find( { $or: [ {name:/^m/i}, {name:1mactive:1} ] } )
Specify what you are looking for and what data is in the fields?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question