Re: SolrClient query-param handling question

2025-01-10 Thread Mark Miller
That would normally be done if you want to get those params before you have parsed the form data. At some point, there were cases of that. And it’s likely done with an attempt to be generic and work with whatever format since it’s essentially a feature in user code. If the current use doesn’t need

Re: SolrClient query-param handling question

2025-01-10 Thread David Smiley
The method org.apache.solr.client.solrj.impl.HttpSolrClientBuilderBase#withTheseParamNamesInTheUrl is only used by UpdateShardHandler so that "distrib.from" and "update.distrib" (used by DistributedUpdateProcessor) are guaranteed to be in the URL. It appears Dat added this during the http2 branch

SolrClient query-param handling question

2025-01-10 Thread Jason Gerlowski
Hey all, SolrJ's SolrClient implementations have an interesting bit of logic around how they handle SolrParams. In short: params are attached tothe request differently based on a quite detailed series of checks. "GET" requests attach params to the URL as traditional "query parameters". "POST an