I don't know when using a mongoTemplate what writing?
Is currently in use and common query fields as writing:
MongoTemplate. Find (query, enclosing getEntityClass ());
Don't know how to write full text indexing query is'
'
To solve the???
CodePudding user response:
Have a great god appeared not?CodePudding user response:
Has been solved,Db. The list. The find ({' code ':' testname ', '$text: {$search:' 3120980105 '}}); It is ok to full-text index with $text directly;
Want to do is to encapsulate the {' code ':' testname ', '$text: {$search:' 3120980105 '}}
CodePudding user response:
Is that how to complete the final encapsulated, mongo. Core. If could not find the corresponding methods in the query object,