Lucene query

24 views
Skip to first unread message

Thor A. Johansen

unread,
Jul 4, 2012, 6:54:59 PM7/4/12
to ravendb
How would one build a query which is the negation
of .WhereIn(fieldName, myBlackList). I want all documents for which
the property fieldName does not have any of the values in the
blacklist.

There is no .WhereNotIn() extentionmethod

I could craft a lucene query using .Where(), but the documentation
says it is obsoleted, and to use .Search() instead. However I cannot
find any doumentation on the .Search() extension method.

--
Thor Arne Johansen
Oppad AS

Itamar Syn-Hershko

unread,
Jul 4, 2012, 7:46:04 PM7/4/12
to rav...@googlegroups.com
.Where("Field:*")
.AndAlso()
.Not
.WhereIn("Topics", topicId);

You might need to Open/CloseSubclause before and after WhereIn
Reply all
Reply to author
Forward
0 new messages