我在使用包含 LINQ 查询的函数时遇到错误
发生以下错误
Contains is not supported, doing a substring match over a text field is a very
slow operation, and is not allowed using the Linq API.
The recommended method is to use full text search (mark the field as Analyzed and
use the Search() method to query it.
这是我的查询
query = from u in Session.Query<Article>() where u.Tags.Contains(tags) orderby u.CreationDate descending select
StartWith/EndsWith
工作正常,但不能完全满足我的要求