Text Search not working with Spring Boot MongoDB

前端 未结 1 2025
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-19 02:16

I am developing the Spring Boot + MongoDB + spring data mongo + Text search Example. By taking a reference from link: https://spring.io/blog/2014/07/17/text-search-

相关标签:
1条回答
  • 2021-02-19 02:30

    first drop indexs commandline db.order-details.dropIndex()

    and refactor this line TextCriteria criteria = TextCriteria.forDefaultLanguage().matchingPhrase("OrderID").matchingPhrase(String.valueOf(orderId)); after run application

    0 讨论(0)
提交回复
热议问题