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

Hoss Man commented on SOLR-3619:
--------------------------------

I started reading through this, and then got bogged down, and didn't have the 
energy to keep going.

So i'm just going to point out the suggestion i made a while back in SOLR-3259 
but never got any feedback on...

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

In summary...

* rename example to server
* make .../solr/collection1 a super generic kitchen-sink set of configs
** include every imaginable field type and  dynamicField, and a super generic 
set of explicit fields
** this would be the recomended starting point for all new users
** this collection would work out of the box when running "java -jar start.jar"
** this collection would come with no sample data
* make a bunch of .../solr/example-collections/\* directories 
** ie: minimal tech-products, books, super-heroes, rss, etc...
** each of these collections would have scaled down configs, tailored to the 
example use case, showing off just the fields/features that matter for the use 
case
** each of these collections would either have an ./exampledocs directory, or a 
DIH config for fetching some sample data
** these collections would not be enabled by default or even mentioned in the 
solr.xml, but the wiki pages and tutorials that wanted to refer to them could 
list the CoreAdmin CREATE url to start using them

...that way people who want to get started quickly with the "recomended server 
setup" can just copy the "server" directory, and delete everything under 
"example-collections".  people can also look customize their solr/collection1 
configs either by pruning, or by drawing inspiration from the special case 
example stuff in the examples.

The basic migration would be something like...

{noformat}
mkdir solr/example/solr/example-collections
svn cp solr/example/solr/collection1 
solr/example/solr/example-collections/tech-products
svn cp solr/example/solr/collection1 solr/example/solr/example-collections/books
# :TODO: edit solr/example/solr/example-collections/tech-products to prune it 
down
# :TODO: edit solr/example/solr/collection1 to remove anything too product-ish 
specific
# :TODO: edit solr/example/solr/example-collections/books to remove anything to 
product-ish specific and make fields more 'book' specific
mkdir solr/example/solr/example-collections/books/exampledocs
mkdir solr/example/solr/example-collections/tech-products/exampledocs
svn mv solr/example/exampledocs/books.* 
solr/example/solr/example-collections/books/exampledocs
svn mv solr/example/exampledocs/*.xml 
solr/example/solr/example-collections/tech-products/exampledocs
svn mv solr/example/exampledocs/* solr/example
svn mv solr/example/example-DIH/solr/rss 
solr/example/solr/example-collections/dih-rss-crawling
svn mv solr/example/example-DIH/solr/db 
solr/example/solr/example-collections/dih-db-crawling
svn mv solr/example/example-DIH/solr/mail 
solr/example/solr/example-collections/dih-mail-crawling
svn mv solr/example/example-DIH/solr/mail 
solr/example/solr/example-collections/dih-tika-crawling
svn rm solr/example/multicore # no longer needed, everything else is already a 
multicore example
# :TODO: add a solr/example/solr/example-collections/minimal
# :TODO: update example tests to CREATE every example-collection and index some 
data.
svn mv example server # since that's what people seen to want
{noformat}


                
> Rename 'example' dir to 'server' and pull examples into an 'examples' 
> directory
> -------------------------------------------------------------------------------
>
>                 Key: SOLR-3619
>                 URL: https://issues.apache.org/jira/browse/SOLR-3619
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Mark Miller
>             Fix For: 4.0
>
>         Attachments: server-name-layout.png, SOLR-3619.patch
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to