themotleyfool/Lucene.Net.Linq — pull request #2 by benjaminramey (2012-12-18 21:35:16+00:00)
Title: Fixes bug when query field and constant are switched and operator is not

I found a bug when you have a query like this:
var query = from a in Articles
where 5 >= a.Id
select a;

This query was being effectively turned into this:
var query = from a in Articles
where a.Id >= 5
select a;

but without switching the operator from >= to <= to keep the original meaning of the where clause. I fixed this in the BinaryToQueryExpressionTreeVisitor and added tests for it in BinaryToQueryExpressionTreeVisitorTests.