[ 
https://issues.apache.org/jira/browse/SOLR-15333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17415991#comment-17415991
 ] 

Steffen Moldenhauer commented on SOLR-15333:
--------------------------------------------

I get the same warnings after manipulation of a schema with the Schema API. 
Even if the initial schema does not have the attribtues e.g. "omitNorms=true"at 
the location_rpt fieldtype.

It seems that these attributes are written with the (unrelated) Schema API 
request.

*Steps To Repeat*

[http://localhost:8983/solr/admin/configs?action=CREATE&name=myConfigSet&baseConfigSet=_default]

[http://localhost:8983/solr/admin/collections?action=CREATE&collection.configName=myConfigSet&name=myCollection&numShards=1|http://localhost:8983/solr/admin/collections?_=1631709892162&action=CREATE&collection.configName=myConfigSet&name=myCollection&numShards=1]

curl -X POST -H 'Content-Type: application/json' -i 
http://localhost:8983/solr/myCollection/schema --data '{
 "add-field":{
 "name":"sell_by",
 "type":"pdate",
 "stored":true }
}'

[http://localhost:8983/solr/admin/collections?action=RELOAD&name=myCollection]

The warnings are appearing.

 

> Solr-demo in docker uses improper configuration for 
> SpatialRecursivePrefixTreeFieldType
> ---------------------------------------------------------------------------------------
>
>                 Key: SOLR-15333
>                 URL: https://issues.apache.org/jira/browse/SOLR-15333
>             Project: Solr
>          Issue Type: Task
>    Affects Versions: 8.8.2
>            Reporter: Mike Drob
>            Assignee: David Smiley
>            Priority: Major
>
> 4/13/2021, 4:54:42 PM
> WARN false
> x:demo
> AbstractSpatialPrefixTreeFieldType
> FieldType SpatialRecursivePrefixTreeFieldType does not allow omitNorms to be 
> specified in schema,​ hardcoded behavior is omitNorms=true
> 4/13/2021, 4:54:42 PM
> WARN false
> x:demo
> AbstractSpatialPrefixTreeFieldType
> FieldType SpatialRecursivePrefixTreeFieldType does not allow 
> omitTermFreqAndPositions to be specified in schema,​ hardcoded behavior 
> is omitTermFreqAndPositions=true
> 4/13/2021, 4:54:42 PM
> When running solr-demo with our docker images, we get a bunch of warnings:
> {noformat}
> FieldType SpatialRecursivePrefixTreeFieldType does not allow omitNorms to be 
> specified in schema,​ hardcoded behavior is omitNorms=true
> FieldType SpatialRecursivePrefixTreeFieldType does not allow 
> omitTermFreqAndPositions to be specified in schema,​ hardcoded behavior 
> is omitTermFreqAndPositions=true
> FieldType SpatialRecursivePrefixTreeFieldType does not allow termOffsets to 
> be specified in schema,​ hardcoded behavior is termOffsets=false
> FieldType SpatialRecursivePrefixTreeFieldType does not allow termPositions to 
> be specified in schema,​ hardcoded behavior is termPositions=false
> FieldType SpatialRecursivePrefixTreeFieldType does not allow omitPositions to 
> be specified in schema,​ hardcoded behavior is omitPositions=true
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to