RavenDB full-text search

前端 未结 3 1141
攒了一身酷
攒了一身酷 2021-02-04 13:11

Can you please tell how to perform simple full-text search in RavenDb. The database is stored document: Movie {Name = \"Pirates of the Carribean\"}. I

3条回答
  •  名媛妹妹
    2021-02-04 13:21

    Boris, Rob's answer has the right index, but it is a bit awkward for querying. You can do that using:

     session.Query()
             .Search(x=>x.Name, searchTerms)
             .ToList()
    

    That will

提交回复
热议问题