Set Advanced.LuceneQuery to use AND rather than OR as default conjunction

16 views
Skip to first unread message

balazs

unread,
Jun 12, 2012, 4:11:32 PM6/12/12
to rav...@googlegroups.com
Is there a way to have Advanced.LuceneQuery use "AND" rather than "OR" as the default conjunction?

Chris Marisic

unread,
Jun 12, 2012, 4:14:30 PM6/12/12
to rav...@googlegroups.com
Advanced.LuceneQuery .Where____.AndAlso().....

Balazs Czifra

unread,
Jun 12, 2012, 4:17:02 PM6/12/12
to rav...@googlegroups.com
Indeed.  However, if a user enters: quick brown "lazy dog", I need Lucene to interpret this as: quick AND brown AND "lazy dog".  Yes, I know I could parse their input to insert the "AND"s, but it would prefer not to.  I know that SOLR allows the default to be changed.  Any other ideas on whether this is possible in Raven?

Itamar Syn-Hershko

unread,
Jun 12, 2012, 5:23:28 PM6/12/12
to rav...@googlegroups.com
Not currently, no. The QP is defaulted to OR and there's no setting to change it.
Reply all
Reply to author
Forward
0 new messages