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

Hoss Man commented on SOLR-12962:
---------------------------------

I think the oddity you're seeing isn't specific/special to {{uninvertible}} ... 
it's the same kind of oddity that can exist if you look at techproduct's 
{{random_*}} dynamic field in the schema browser: it says it's "stored" even 
though the concept of being stored makes no sense (and the corresponding 
FieldProperty is unused) in RandomSortField because it's inheriting the global 
(implicit) default.

Likewise if you define an {{ExternalFileField}} it also picks up all sorts of 
(implicit default) FieldProperties ("indexed", "stored", "uninvertible", 
"omitTermFreqAndPositions") that make no sense for that field type, but are 
still inherited by any SchemaField's that use that type and show up in the 
schema browser.

Lots of other oddities like this exist, but many are only visable in the Schema 
API (because of the limited info returned by Luke which is what the schema 
browser uses) when using the {{showDefaults=true}} option. Example: all 
FieldTypes have an implicit default of "useDocValuesAsStored=true" when the 
schema version>1.6 ... even for fields where doc values make no sense like 
TextField, ExternalFileField, etc...

I'm not saying there isn't room for improvement here, just that it's a much 
more widespread issue of implicit default FieldProperties that don't always 
make sense for all FieldType _classes_ (let alone {{<fieldType/>}} and 
{{<field/>}} instances based on other explicit properties) above and beyond 
{{uninvertible}} and should be tackled more broadly in a distinct issue 
(although even if we *only* wanted to try to fix this for {{uninveritible}} it 
needs a new issue for tracking since this code has already been released)

> add an 'uninvertible' field(type) option (that defaults to "true" for 
> backcompat)
> ---------------------------------------------------------------------------------
>
>                 Key: SOLR-12962
>                 URL: https://issues.apache.org/jira/browse/SOLR-12962
>             Project: Solr
>          Issue Type: Sub-task
>            Reporter: Hoss Man
>            Assignee: Hoss Man
>            Priority: Major
>             Fix For: 7.6, 8.0
>
>         Attachments: SOLR-12962.patch, SOLR-12962.patch, SOLR-12962.patch, 
> SOLR-12962.patch, SOLR-12962.patch
>
>
> field & fieldtype declarations should support an {{uninvertible}} option 
> (which defaults to "true") for backcompat that dictates wether or not 
> Uninversion can be performed on fields.
> See parent issue for more background/discussion.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to