You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The recent feature, #4161, include support for exposing lucene data / statistics for scripts. The naming though is misleading potentially, both on the class names and on how to access it in scripts.
The _shard key is used to access it in script. The class names are ShardTermsLookup, ScriptTerms, ScriptTerm for example. The _shard name feels too generic, while the terms names in the class names is misleading, since one can get data not only for terms (like doc count).
I think we can try to find a good name for it, and derive the script name and class names from it. Some thoughts include:
_ts (script) / TermsXXX (class): though not all data exposed relates to terms, it encapsulates most of the stats one can get. The down side is, of course, that one can get more info than just terms.
_stats (script) / StatsXXX (class): most of the data that is exposed relates to statistics information. Though again, not all, for example, payload... .
_index (script) / IndexXXX (class): this is an "inverted index" level information, stats and other information that can be derived from the index itself.
I am personally leaning towards _index.
The text was updated successfully, but these errors were encountered:
The recent feature, #4161, include support for exposing lucene data / statistics for scripts. The naming though is misleading potentially, both on the class names and on how to access it in scripts.
The
_shard
key is used to access it in script. The class names areShardTermsLookup
,ScriptTerms
,ScriptTerm
for example. The_shard
name feels too generic, while theterms
names in the class names is misleading, since one can get data not only for terms (like doc count).I think we can try to find a good name for it, and derive the script name and class names from it. Some thoughts include:
_ts
(script) /TermsXXX
(class): though not all data exposed relates to terms, it encapsulates most of the stats one can get. The down side is, of course, that one can get more info than just terms._stats
(script) /StatsXXX
(class): most of the data that is exposed relates to statistics information. Though again, not all, for example, payload... ._index
(script) /IndexXXX
(class): this is an "inverted index" level information, stats and other information that can be derived from the index itself.I am personally leaning towards
_index
.The text was updated successfully, but these errors were encountered: