Reputation: 11
Does SolrNet support query parser? How to use it? I can't find any documentation about SolrNet query parsers
Thank you
Upvotes: 0
Views: 186
Reputation: 52792
You can either use LocalParams or you can use ExtraParams to make Solrnet switch the query parser in Solr:
Solr has lots of features that aren't directly mapped in SolrNet, but you can enable and use most of them with the ExtraParams dictionary. Parameters defined in ExtraParams are directly passed to the Solr querystring. [..]
Or enable DisMax instead of the standard request handler:
ISolrOperations<Product> solr = ...
var products =
solr.Query(SolrQuery.All, new QueryOptions {
ExtraParams = new Dictionary<string, string> {
{"qt", "dismax"}
}
});
Or by using LocalParams as shown in the answers to How do I properly do a dismax query using solrnet.
Upvotes: 1