About mongodb in accordance with the method of fuzzy query

Label Fuzzy query about mongodb in accordance with the field fuzzy
12151 people read Comment(2) Collection Report
Classification:


About mongodb in accordance with the method of fuzzy query

 

Fuzzy query: tname contains a keyword test

/opt/soft/mongodb/bin CD

--host 192.168.0.1 --port./mongo 17017 test

Db.test_info.find ({"tname": {$regex: 'test', $options:'i'}})

Db.test_info.find ({"tname": {$regex:/ test.*/i}})

Top
One
Step
0
Guess what you're looking for.
View comments
* above the user's comments only represent their personal views, do not represent the views or position of the CSDN website
    Personal data
    • Visit518828 times
    • Integral:7975
    • Grade
    • Rank:1251st
    • Original239
    • Reprint:96
    • Translation:0
    • Comment:117
    Latest comments
    Non technical site