[ https://issues.apache.org/jira/browse/SOLR-17591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17910815#comment-17910815 ]
Siju Varghese commented on SOLR-17591: -------------------------------------- The issue seems to be when I use the POST method v/s GET The _poi_ collection is aliased to _poi_poi_index-glov_2024-12-04_ This is the test code: {code:java} final ModifiableSolrParams params = new ModifiableSolrParams(); params.set(CommonParams.Q, "geohash:d"); params.add(CommonParams.FL, "id"); QueryRequest req = new QueryRequest(params); req.setMethod(POST); Http2SolrClient solrClient = new Http2SolrClient.Builder("http://localhost:8983/solr/").build(); params.set("collection", "poi"); response = solrClient.request(req) {code} Access log entries for POST method {code:java} 127.0.0.1 - - [07/Jan/2025:21:35:27 +0000] "POST /solr/select HTTP/2.0" 404 96{code} Access log entries for GET method {code:java} 127.0.0.1 - - [07/Jan/2025:21:36:56 +0000] "POST /solr/poi_poi_index-glov_2024-12-04_shard9_replica_n18/select HTTP/2.0" 200 828 127.0.0.1 - - [07/Jan/2025:21:36:56 +0000] "GET /solr/select?q=geohash%3Ad&fl=id&collection=poi&wt=javabin&version=2 HTTP/2.0" 200 240{code} However when I remove collection param and replace the request method with _solrClient.request(req,"poi")_ it seems to work fine. {code:java} 127.0.0.1 - - [07/Jan/2025:21:40:53 +0000] "POST /solr/poi_poi_index-glov_2024-12-04_shard9_replica_n18/select HTTP/2.0" 200 786 127.0.0.1 - - [07/Jan/2025:21:40:53 +0000] "POST /solr/poi/select HTTP/2.0" 200 224{code} > SolrJ : CloudSolrClient does not honor collection aliasing > ---------------------------------------------------------- > > Key: SOLR-17591 > URL: https://issues.apache.org/jira/browse/SOLR-17591 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) > Components: SolrJ > Reporter: Siju Varghese > Priority: Minor > > Requests using CloudSolrClient fail with http 400 / could not find collection > when querying a collection with its aliased name. > -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org