How to create this query in SolrNet

32 views
Skip to first unread message

BNarsi

unread,
Aug 21, 2015, 10:43:23 AM8/21/15
to SolrNet
CustomerID is a string
CustomerName is text

I have to create the following query: (CustomerID is NULL or CustomerID = 56789) and (CustomerName like smith)

I have figured out the syntax in Solr which gives me expected results

((-(CustomerID: [* TO *])) OR (CustomerID: 56789))+(CustomerName:"smith") 


Note that I am using a + sign (instead of AND because AND was not giving me expected results)

How do I create this query in SolrNet?

Thank you

Mauricio Scheffer

unread,
Sep 14, 2015, 6:09:32 PM9/14/15
to SolrNet
Hi , have you seen https://github.com/mausch/SolrNet/blob/master/Documentation/Querying.md ? It lists all the query objects supported by SolrNet with their corresponding translations.

Cheers
Reply all
Reply to author
Forward
0 new messages