You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by Vince McMahon <si...@gmail.com> on 2023/11/21 03:22:14 UTC
pls help with the definitions in schema.xml and how to get a copy of files
Hi,
I need some help to clarify a schema.xml I am trying to find out where the
fieldtype string is defined.
I open the defination of the schema.xml from admin UI
https://localhost:8984/solr/cookbookCSV/admin/file?wt=json&_=1700536107495&
file=schema.xml&contentType=text%2Fxml%3Bcharset%3Dutf-8
How can I find out:
1) the location of these 3 files, fieldTypes.xml, core.xml, and pmatch.xml.
It seems the fieldtypes and etc are defined there.
2) how to download a copy of these 3 files?
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE schema
[
<!ENTITY fieldTypes SYSTEM "fieldTypes.xml">
<!ENTITY core SYSTEM "core.xml">
<!ENTITY pmatch SYSTEM "pmatch.xml">
]>
<schema name="cookbookCSV" version="1.6">
&core;
&pmatch;
<field name="isbn" type="string" indexed="true" stored="true"/>
<!-- These fields become free-text searchable -->
<copyField source="isbn" dest="_text_"/>
<copyField source="isbn" dest="_fuzzy_"/>\
...
&fieldTypes;
</schema>
Re: pls help with the definitions in schema.xml and how to get a copy of files
Posted by Vince McMahon <si...@gmail.com>.
Thank you Shawn.
On Wed, Nov 22, 2023, 11:10 AM Shawn Heisey <el...@elyograg.org.invalid>
wrote:
> On 11/22/23 08:57, Vince McMahon wrote:
> > Shawn,
> >
> > The guy left the job. And the pass word is gone.
>
> As I said before, if the schema with those ENTITY definitions works,
> then the files ARE on the system somewhere.
>
> If it's Linux or another UNIX-like system, running this as root should
> locate the file:
>
> find / -name "fieldTypes.xml"
>
> Thanks,
> Shawn
>
>
Re: pls help with the definitions in schema.xml and how to get a copy of files
Posted by Shawn Heisey <el...@elyograg.org.INVALID>.
On 11/22/23 08:57, Vince McMahon wrote:
> Shawn,
>
> The guy left the job. And the pass word is gone.
As I said before, if the schema with those ENTITY definitions works,
then the files ARE on the system somewhere.
If it's Linux or another UNIX-like system, running this as root should
locate the file:
find / -name "fieldTypes.xml"
Thanks,
Shawn
Re: pls help with the definitions in schema.xml and how to get a copy of files
Posted by Vince McMahon <si...@gmail.com>.
Shawn,
The guy left the job. And the pass word is gone.
On Wed, Nov 22, 2023, 10:22 AM Shawn Heisey <el...@elyograg.org.invalid>
wrote:
> On 11/20/23 20:22, Vince McMahon wrote:
> > I need some help to clarify a schema.xml I am trying to find out where
> the
> > fieldtype string is defined.
> >
> > I open the defination of the schema.xml from admin UI
> >
> https://localhost:8984/solr/cookbookCSV/admin/file?wt=json&_=1700536107495&
> > file=schema.xml&contentType=text%2Fxml%3Bcharset%3Dutf-8
> >
> > How can I find out:
> > 1) the location of these 3 files, fieldTypes.xml, core.xml, and
> pmatch.xml.
> > It seems the fieldtypes and etc are defined there.
> > 2) how to download a copy of these 3 files?
>
> These files are not used in Solr example configs. That config did NOT
> come from the Solr project.
>
> You will need to talk to whoever supplied the schema to get those files.
>
> If that schema works, then those files must be somewhere on your system.
> Exactly how to search for them will depend on what OS the system is
> running.
>
> In the Solr 9.x example schemas, the string fieldType is defined like this:
>
> <fieldType name="string" class="solr.StrField"
> sortMissingLast="true" docValues="true" />
>
> Thanks,
> Shawn
>
>
Re: pls help with the definitions in schema.xml and how to get a copy of files
Posted by Shawn Heisey <el...@elyograg.org.INVALID>.
On 11/20/23 20:22, Vince McMahon wrote:
> I need some help to clarify a schema.xml I am trying to find out where the
> fieldtype string is defined.
>
> I open the defination of the schema.xml from admin UI
> https://localhost:8984/solr/cookbookCSV/admin/file?wt=json&_=1700536107495&
> file=schema.xml&contentType=text%2Fxml%3Bcharset%3Dutf-8
>
> How can I find out:
> 1) the location of these 3 files, fieldTypes.xml, core.xml, and pmatch.xml.
> It seems the fieldtypes and etc are defined there.
> 2) how to download a copy of these 3 files?
These files are not used in Solr example configs. That config did NOT
come from the Solr project.
You will need to talk to whoever supplied the schema to get those files.
If that schema works, then those files must be somewhere on your system.
Exactly how to search for them will depend on what OS the system is
running.
In the Solr 9.x example schemas, the string fieldType is defined like this:
<fieldType name="string" class="solr.StrField"
sortMissingLast="true" docValues="true" />
Thanks,
Shawn