Get Exaplain Information

8 views
Skip to first unread message

tbastos

unread,
Sep 30, 2015, 1:01:44 PM9/30/15
to SolrNet
Hi guys,

I'm successfully making queries to SOLR from Solr Net.
Add i'm accessing Facet, Group, QueryTime, Result, ... 
All sorts of information.

But now i what to retrieve the explanation for the score of the resulting documents.
I can have access to the throw the brwoser, like: localhost:8983/solr?q=something&.....&debug=true&debug.explain.structured=true  

Can anyone tell me if it is possible to access that information from the SolrNet?

My code is something like,

            new SolrBaseRepository.Instance<T>().Start();
           
var solr = ServiceLocator.Current.GetInstance<ISolrOperations<T>>();var solr = ServiceLocator.Current.GetInstance<ISolrOperations<T>>();

           

           
...

           

           
var results = solr.Query(query, new QueryOptions());


           
var searchResults = new SearchResult() {
               
Result = results,
               
QueryTime = results.Header.QTime,
               
Status = results.Header.Status,
               
TotalHits = results.Grouping["group"].Ngroups,
               
Facet = results.FacetFields,
               
Group = results.Grouping["group"].Groups,
           
};

Thanks in advance. :)

Reply all
Reply to author
Forward
0 new messages