[
https://issues.apache.org/jira/browse/SOLR-16139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17516067#comment-17516067
]
Michael Gibney commented on SOLR-16139:
---------------------------------------
True (linking SOLR-13056 for good measure).
Restoring behavior (such as it was) of 8.11 would I think be straightforward
(override {{getFieldTermQuery(...)}} in {{SortableTextField}} to delegate to
{{TextField.getFieldQuery(...)}}.
But if you're suggesting that maybe faceting shouldn't work at all on
{{SortableTextField}}, I'm inclined to agree.
Just to be a bit more explicit: for the usual case of {{docValues==true}} the
trouble is that docValues-based faceting would facet on the entire monolithic
sort string, whereas faceting based on uninverted indexed values
(facet.method=uif}} would facet based on tokenized values. And refinement would
_always_ be against tokenized values. ({{SortableTextField}} with docValues
explicitly disabled looks like it is supported ... but tbh I'm not clear on
what that would even mean? The only way it would make any sense at all
generally speaking would be with KeywordTokenizer).
> [Regression] JSON stat facet functions not working on analysed String
> (SortableTextField)
> -----------------------------------------------------------------------------------------
>
> Key: SOLR-16139
> URL: https://issues.apache.org/jira/browse/SOLR-16139
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Components: faceting
> Affects Versions: 8.11.1
> Reporter: Jan Verbeeck
> Priority: Critical
> Labels: faceting, json
>
> After updating Solr on my dev environment to version 8.11.1 I noticed nested
> json stat facets where not working anymore. When downgrading to 8.11.0 worked
> as before.
> It seems the problem is related to using an analysed string fieldtype like
> 'solr.SortableTextField' and then using a subfacet with a stat facet function
> like 'avg'.
>
> I have managed to reproduce this behaviour using docker. You can find the
> repository here:
> [solr-json-repro|https://github.com/verbeeckjan/solr-json-repro]
>
> The only change I made to the default managed-schema is to change the type of
> the dynamic field '*_s' to 'text_gen_sort'.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]