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 Michael Joyner <mi...@newsrx.com> on 2017/12/20 16:29:07 UTC

Are the entries in managed-schema order dependent?

Hey all,

I'm wanting to update our managed-schemas to include the latest options 
available in the 6.6.2 branch. (point types for one)

I would like to be able to sort them and diff them (production vs dist 
supplied) to create a simple patch that can be reviewed, edited if 
necessary, and then applied to the production schemas.

I'm thinking this approach would be least human error prone, but, the 
schemas would need to be diffable and I can only see this as doable if 
they are sorted so that common parts diff out. I only see this approach 
easily workable if the entries aren't order dependent. (Presuming I can 
get all the various schema settings to fit neatly on single lines...).

Or does there exist a list of schema entries added along different point 
releases?

-Mike/NewsRx


Re: Are the entries in managed-schema order dependent?

Posted by Michael Joyner <mi...@newsrx.com>.
Thanks!


On 12/20/2017 11:37 AM, Erick Erickson wrote:
> The schema is not order dependent, I freely mix-n-match the fieldType,
> copyField and field definitions for instance.
>
>
>
> On Wed, Dec 20, 2017 at 8:29 AM, Michael Joyner <mi...@newsrx.com> wrote:
>> Hey all,
>>
>> I'm wanting to update our managed-schemas to include the latest options
>> available in the 6.6.2 branch. (point types for one)
>>
>> I would like to be able to sort them and diff them (production vs dist
>> supplied) to create a simple patch that can be reviewed, edited if
>> necessary, and then applied to the production schemas.
>>
>> I'm thinking this approach would be least human error prone, but, the
>> schemas would need to be diffable and I can only see this as doable if they
>> are sorted so that common parts diff out. I only see this approach easily
>> workable if the entries aren't order dependent. (Presuming I can get all the
>> various schema settings to fit neatly on single lines...).
>>
>> Or does there exist a list of schema entries added along different point
>> releases?
>>
>> -Mike/NewsRx
>>


Re: Are the entries in managed-schema order dependent?

Posted by Alexandre Rafalovitch <ar...@gmail.com>.
Actually, I think Solr does rearrange everything to its liking
(alphabetical?) when it rewrites managed-schema. So, if the
definitions are added via API, the order will be deterministic.

That's what I believe though, I can't remember testing it exhaustively
with physically rearranged types.

Regards,
   Alex

On 20 December 2017 at 11:37, Erick Erickson <er...@gmail.com> wrote:
> The schema is not order dependent, I freely mix-n-match the fieldType,
> copyField and field definitions for instance.
>
>
>
> On Wed, Dec 20, 2017 at 8:29 AM, Michael Joyner <mi...@newsrx.com> wrote:
>> Hey all,
>>
>> I'm wanting to update our managed-schemas to include the latest options
>> available in the 6.6.2 branch. (point types for one)
>>
>> I would like to be able to sort them and diff them (production vs dist
>> supplied) to create a simple patch that can be reviewed, edited if
>> necessary, and then applied to the production schemas.
>>
>> I'm thinking this approach would be least human error prone, but, the
>> schemas would need to be diffable and I can only see this as doable if they
>> are sorted so that common parts diff out. I only see this approach easily
>> workable if the entries aren't order dependent. (Presuming I can get all the
>> various schema settings to fit neatly on single lines...).
>>
>> Or does there exist a list of schema entries added along different point
>> releases?
>>
>> -Mike/NewsRx
>>

Re: Are the entries in managed-schema order dependent?

Posted by Erick Erickson <er...@gmail.com>.
The schema is not order dependent, I freely mix-n-match the fieldType,
copyField and field definitions for instance.



On Wed, Dec 20, 2017 at 8:29 AM, Michael Joyner <mi...@newsrx.com> wrote:
> Hey all,
>
> I'm wanting to update our managed-schemas to include the latest options
> available in the 6.6.2 branch. (point types for one)
>
> I would like to be able to sort them and diff them (production vs dist
> supplied) to create a simple patch that can be reviewed, edited if
> necessary, and then applied to the production schemas.
>
> I'm thinking this approach would be least human error prone, but, the
> schemas would need to be diffable and I can only see this as doable if they
> are sorted so that common parts diff out. I only see this approach easily
> workable if the entries aren't order dependent. (Presuming I can get all the
> various schema settings to fit neatly on single lines...).
>
> Or does there exist a list of schema entries added along different point
> releases?
>
> -Mike/NewsRx
>