For example, a collection contains information extracted from apache logs. Then I want to query about’ 23′ fuzzily now, and then do I have to query all fields?
Because it is possible that this keyword exists in these fields?
Example mongodb Fields and Values
name：'23'， ip:'188.8.131.52', docs:'hahah1234',
Regarding the situation of fuzzy query, I have considered all the fields and do not know whether this idea is reasonable or not. Is there any other way?
Thank you ~!
Please refer to MongoDB’s Text Search function.
Links to official documents are as follows:
Love MongoDB！ Have Fun！