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

Steve Rowe commented on SOLR-6913:
----------------------------------

bq. What's the reasoning behind removing so many of the field types?

My thinking was that the schemaless example should be minimal.  In particular, 
if we don't have a way for field types to be used (via (dynamic)field 
definitions or field guessing), why include them?  If the user can add fields, 
they can add field types too.

{quote}
I'd vote for returning:
# geo related
# currency
# Language support
{quote}

In the cases of language support, there was no way to use those field types 
without manually adding fields (there were no dynamic fields defined for them), 
and as it stands we don't have a way to document the schema so that people can 
figure out what field types to use (though see my schema annotation proposal: 
[http://mail-archives.apache.org/mod_mbox/lucene-dev/201308.mbox/%3c7384f7f2-ad35-480b-8523-3db75aa06...@gmail.com%3E]).

There were geo dynamic field to go with the defined field types, but I removed 
them because understanding which geo type to use seemed confusing, and solr 
spatial is evolving, so it seemed better to let the user find the latest advice 
for how to use this and update the schema themselves.

I removed the currency capabilities because it seemed esoteric, and didn't fit 
with a simple example.

> audit & cleanup "schema" in data_driven_schema_configs
> ------------------------------------------------------
>
>                 Key: SOLR-6913
>                 URL: https://issues.apache.org/jira/browse/SOLR-6913
>             Project: Solr
>          Issue Type: Task
>            Reporter: Hoss Man
>            Assignee: Steve Rowe
>            Priority: Blocker
>             Fix For: 5.0, Trunk
>
>         Attachments: SOLR-6913-trim-schema.patch, 
> SOLR-6913-trim-schema.patch, SOLR-6913.patch
>
>
> the data_driven_schema_configs configset has some issues that should be 
> reviewed carefully & cleaned up...
> * currentkly includes a schema.xml file:
> ** this was previously pat of the old example to show the automatic 
> "bootstraping" of schema.xml -> managed-schema, but at this point it's just 
> kind of confusing
> ** we should just rename this to "managed-schema" in svn - the ref guide 
> explains the bootstraping
> * the effective schema as it currently stands includes a bunch of copyFields 
> & dynamicFields that are taken wholesale from the techproducts example
> ** some of these might make sense to keep in a general example (ie: "\*_txt") 
> but in general they should all be reviewed.
> ** a bunch of this cruft is actually commented out already, but anything we 
> don't want to keep should be removed to eliminate confusion
> * SOLR-6471 added an explicit "_text" field as the default and made it a 
> copyField catchall (ie: "\*")
> ** the ref guide schema API example responses need to reflect the existence 
> of this field: 
> https://cwiki.apache.org/confluence/display/solr/Schemaless+Mode
> ** we should draw heavy attention to this field+copyField -- both with a "/!\ 
> NOTE" in the refguide and call it out in solrconfig.xml & "managed-schema" 
> file comments since people who start with these configs may be suprised and 
> wind up with a very bloated index



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to