You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using (var store = GetDocumentStore())
{
using (var s = store.OpenSession())
{
var searchThenWhere = s.Advanced.DocumentQuery<User>()
.Search("Name", "Ayende")
.WhereEquals("Name", "fd")
.ToString();
var whereThenSearch = s.Advanced.DocumentQuery<User>()
.WhereEquals("Name", "fd")
.Search("Name", "Ayende")
.ToString();
var linq = s.Query<User>()
.Search(x => x.Name, "Ayende")
.Where(x => x.Name == "fd")
.ToString();
}
}
output:
linq: from 'Users' where search(Name, $p0) and (Name = $p1)
searchThenWhere: from 'Users' where search(Name, $p0) or Name = $p1
whereThenSearch: from 'Users' where Name = $p0 and search(Name, $p1)
The following code:
Will generate a query with
search("question", $p0) or not where("id()", ...)
Should be and not...
The text was updated successfully, but these errors were encountered: