[
https://issues.apache.org/jira/browse/SOLR-10134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Alexandersson updated SOLR-10134:
----------------------------------------
Description:
The EmbeddedSolrServer server does not support calls to the POST methods of
SchemaAPI using SolRJ api. The reason is that the httpMethod param is never set
by the EmbeddedSolrServer#request(SolrRequest, String) and this is later
required by the SchemaHandler class that actually performs the call at
SchemaHandler#handleRequestBody(SolrQueryRequest, SolrQueryResponse).
Proposal is to enhance the EmbeddedSolrServer to forward the httpMethod at
aprox row 174 with the following: "req.getContext().put("httpMethod",
request.getMethod().name());". This change requires the Factory methods of
SolrJ to add the intended method to be used example : new
SchemaRequest.AddField(....) should append the POST method similar to how the
SchemaRequest.Field appends the GET method.
I have written a separate EmbeddedSolrServer with this fix in it and it "works"
now and fields can be created on the fly using the SchemaAPI of the solrj
client.
was:
The EmbeddedSolrServer server does not support calls to the POST methods of
SchemaAPI using SolRJ api. The reason is that the httpMethod param is never set
by the EmbeddedSolrServer#request(SolrRequest, String) and this is later
required by the SchemaHandler class that actually performs the call.
Proposal is to enhance the EmbeddedSolrServer to forward the httpMethod at
aprox row 174 with the following: "req.getContext().put("httpMethod",
request.getMethod().name());". This change requires the Factory methods of
SolrJ to add the intended method to be used example : new
SchemaRequest.AddField(....) should append the POST method similar to how the
SchemaRequest.Field appends the GET method.
I have written a separate EmbeddedSolrServer with this fix in it and it "works"
now and fields can be created on the fly using the SchemaAPI of the solrj
client.
> EmbeddedSolrServer does not support SchemaAPI
> ---------------------------------------------
>
> Key: SOLR-10134
> URL: https://issues.apache.org/jira/browse/SOLR-10134
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Components: Server, SolrJ
> Reporter: Robert Alexandersson
> Labels: test-driven
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> The EmbeddedSolrServer server does not support calls to the POST methods of
> SchemaAPI using SolRJ api. The reason is that the httpMethod param is never
> set by the EmbeddedSolrServer#request(SolrRequest, String) and this is later
> required by the SchemaHandler class that actually performs the call at
> SchemaHandler#handleRequestBody(SolrQueryRequest, SolrQueryResponse).
> Proposal is to enhance the EmbeddedSolrServer to forward the httpMethod at
> aprox row 174 with the following: "req.getContext().put("httpMethod",
> request.getMethod().name());". This change requires the Factory methods of
> SolrJ to add the intended method to be used example : new
> SchemaRequest.AddField(....) should append the POST method similar to how the
> SchemaRequest.Field appends the GET method.
> I have written a separate EmbeddedSolrServer with this fix in it and it
> "works" now and fields can be created on the fly using the SchemaAPI of the
> solrj client.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]