You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by ericstein <er...@crowe.com> on 2019/07/09 23:42:55 UTC

Dynamic field schema

Hi all, 
I am new to the SOLR world, so bear with me. I have currently have 2 cores
that share the same schema, or so I think? I have noticed that certain
fields don't exist in both cores even though they are set to look at the
same config sets (S:\solr-6.1.0\server\solr\configsets\sitecore_configs).

I am expecting both cores to have the following fields: 
official_title_s
official_title_t

However, the second core only recognizes:
official_title_s

It seems that the schema doesn't recognize my field the same in both cores.

My dynamic fields are:
<dynamicField name="*_t" type="text_general" indexed="true" stored="true" />
<dynamicField name="*_s" type="string" indexed="true" stored="true" />



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: Dynamic field schema

Posted by Shawn Heisey <ap...@elyograg.org>.
On 7/10/2019 6:52 AM, ericstein wrote:
> the documents are in both cores. the official title field data exists in
> both. However, it only gives me the official_title_s field in the second
> core when I query. When I look at the schema in the admin it only shows the
> official_title_s field

The schema browser examines the Lucene index.  Lucene doesn't know about 
the schema, so only fields that have actually been used at the Lucene 
layer will be shown.

If the schema browser does not have a field mentioned, it means that 
when the indexed documents made it down to the Lucene layer, that field 
was not present in any of them.

Thanks,
Shawn

Re: Dynamic field schema

Posted by ericstein <er...@crowe.com>.
Hi Shawn,

the documents are in both cores. the official title field data exists in
both. However, it only gives me the official_title_s field in the second
core when I query. When I look at the schema in the admin it only shows the
official_title_s field



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: Dynamic field schema

Posted by Shawn Heisey <ap...@elyograg.org>.
On 7/9/2019 5:42 PM, ericstein wrote:
> I am expecting both cores to have the following fields:
> official_title_s
> official_title_t
> 
> However, the second core only recognizes:
> official_title_s
> 
> It seems that the schema doesn't recognize my field the same in both cores.

What do you mean by "recognize"?  Be very specific about what you are 
examining that has led to this conclusion.

Search results will only contain fields that were actually included in 
the documents when they were indexed.  Maybe documents in the second 
core do not have the official_title_t field.

Thanks,
Shawn