I'm not sure if there's an appetite for this, but I find it enormously useful to be able to send arbitrary parameters to Solr outside of what the API typically allows (i.e., low-level queries like what pysolr provides).
I have a function I hacked on top of sunburnt that allows me to do raw queries. For example, I can do this:
self.si.raw_query(**{'q': '*', 'caller': 'update_index'})
And that'll make a Solr request like:
http://localhost:8983/select/?q=*&caller=update_index
The main way I use this is to add a caller parameter to every request I make so that I can keep track of which ones are slow or later sort things out in the logs, but I also use it when sunburnt or lacks a parameter I need.
Any appetite for adding this into core? I can provide a PR if so.
I'm not sure if there's an appetite for this, but I find it enormously useful to be able to send arbitrary parameters to Solr outside of what the API typically allows (i.e., low-level queries like what pysolr provides).
I have a function I hacked on top of sunburnt that allows me to do raw queries. For example, I can do this:
And that'll make a Solr request like:
The main way I use this is to add a
callerparameter to every request I make so that I can keep track of which ones are slow or later sort things out in the logs, but I also use it whensunburntor lacks a parameter I need.Any appetite for adding this into core? I can provide a PR if so.