How do I configure MongoDB for indexing in SearchBlox?

Start MongoDB with the following command:

mongod --replSet rs0 --oplogSize 100

Run the following commands as shown below:

> show dbs
local (empty)
> use local
switched to db local
> rs.initiate()
{
"info2" : "no configuration explicitly specified -- making one",
"me" : "MONGOSERVER:27017",
"info" : "Config now saved locally. Should come online in about a minute.",
"ok" : 1
}
> show collections
oplog.rs
system.replset
rs0:PRIMARY>

Create a collection:

settings
dbtype : local
dbname : <database name>
collection name: <collection name within local>

Have more questions? Submit a request

Comments