Solr: How to search multiple fields

c#, edismax, solr, solrnet

Solution

Jayendra's answer is correct, but if you want to do this without aggregating data in a single field at index-time (copyFields) and want to do it at query-time instead using the standard handler instead of dismax, in SolrNet you can do:

var query = Query.Field("title").Is(mytitle) || Query.Field("Description").Is(mydescription);
var results = solr.Query(query);

See query operators and DSL for more information.

Problem

I am using solrnet. I have a title and Description fields. I need to search both fields simultaneously. How do I do this?

Original source