If you are on a giant board and you a property type needs to be refreshed, you can use a command in this format:
./background.sh ./runner.py find_and_refresh --skip-images 44 ‘{“board”:44,“enabled”:true,“type”:{“$in”:[“mul”,“man”]}}’
It will only refresh property types mul and man on board 44.
If you want to refresh listings with a certain field: For this example, we will use the hud field:
./background.sh ./runner.py find_and_refresh --skip-images 8 ‘{“board”:8,“enabled”:true,“hud”:{“$exists”:true}}’
If someone wants to find the Agent Id and they send alot of properties, you can enter a command in this format:
db.properties.find({board:49,mls_number:{$in:[“WA10042565”,“WA10082435",“FR10172619”,“FL10195833"]}},{_id:0,mls_number:1,status:1,enabled:1,county:1,type:1,agent_id:1})
How to find the office id for multiple mls numbers:
db.properties.distinct("office_id",{board:204,enabled:true,mls_number:{$in:["375905", "525390", "530233", "527640", "529914", "529915", "529916", "529918", "529919", "529920", "529921", "529922", "529923", "529931", "530193", "531547", "527827", "523662", "523663", "528114", "528258", "528113", "523664", "523665", "530078", "530080", "530081"]}}).sort()
How to see someone’s redirect
If someone says they have redirected their site properly, you can double check what they did by going in the terminal in this format: curl -IL http://www.edinasales.com/
How to check how many properties haven’t been geocoded:
db.properties.find({board:369, enabled:true, geo:{$exists:false}}).count()
How many active listings haven’t been geocoded:
db.properties.find({board:369, enabled:true, geo:{$exists:false},status:"ACTIVE"}).count()
How to find the number of listings that are a certain value of a field:
db.properties.find({board: 4, enabled:true, age_restriction:"N/K"}).count()
How to find example sold listings in db
db.properties.find({board:114,status:"CLOSED",enabled:true},{mls_number:1})
If you see a refresh that keeps dying, you can try kickstart command:
./background.sh ./kickstart.py 48 1095 (the number of days in 3 years)
How to stop a command (i.e a refresh) = enter in the terminal: docker stop [a few of the long list of numbers from previous command]
for example:
docker stop cskhgnls13kje4jdflijakd