Thank you Thomas for the response .
I think I was not clear. My solr server is in schemaless dynamic schema. Schema
API needs the collection name, so specific to that. I want to make it for all
_txt column in my Solr.
curl -X POST -H 'Content-type:application/json' --data-binary '{
"add-field":{
"name":"sell_by",
"type":"pdate",
"stored":true }
}' http://localhost:8983/solr/techproducts/schema
Let me explain more detail to add a copy field in Solr for all _txt to copy in
_s, I need to access managed_Schema.xml and add following line and save.
<copyField source="*_TXT" dest="*_S"/>
My question is rather changing manually how to add this by curl command for the
schemaless dynamic one for all collections. I will appreciate for any help.
Thanks
Subhasis Patra
240-755-2601
[email protected]<mailto:[email protected]>
From: Thomas Corthals <[email protected]>
Sent: Wednesday, May 17, 2023 5:13 AM
To: [email protected]
Subject: Re: Streaming of Documents with text columns (_txt)
PHISH ALERT! CHECK VALIDITY IF CLICKING, SHARING, RESPONDING
Have a look at the Schema API:
https://solr.apache.org/guide/solr/latest/indexing-guide/schema-api.html<https://solr.apache.org/guide/solr/latest/indexing-guide/schema-api.html>
Thomas
Op ma 15 mei 2023 om 15:05 schreef Subhasis Patra
<[email protected]<mailto:[email protected]>>:
> Thanks for your response. I am using dynamic schema. But I want to copy
> all _txt fields to _s fields. I know if I add copy statement in the managed
> schema file it will work , but I don’t want to do manual change. Is there a
> way I can use curl command to add copy command for all _txt columns in the
> managed schema file.
>
> Thanks
> Subhasis Patra
> 240-755-2601
> [email protected]<mailto:[email protected]>
>