[
https://issues.apache.org/jira/browse/SOLR-18023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Isabelle Giguere updated SOLR-18023:
------------------------------------
Description:
*The Problem*
In some use cases, it would be useful to group key-value pairs in a single
field value.
For example, when passing a document to a classification engine, the document's
metadata may contain the classification taxonomy, classifications or topics
from that taxonomy, each with a relevance or confidence score from the engine.
Example from:
https://www.iptc.org/std/NewsCodes/treeview/mediatopic/mediatopic-en-GB.html
Taxonomy: IPTC
Topics:
- health: relevance=78.9
- education: relevance=62.4
- environment: relevance=85.4
This could be represented in Solr as individual "float" type fields, but in
this case, if more than one taxonomy is applied to the document, the relation
to the taxonomy for each metadata is lost and the indexed metadata becomes
unusable:
{code:xml}
<float name="health">78.9</float>
<float name="education">62.4</float>
<float name="environment">85.4</float>
{code}
*Improvement*
A new type of field to group key-value pairs in a single field value:
{code:xml}
<arr name="IPTC">
<mapping>
<str name="key">health</str>
<float name="value">78.9</float>
</mapping>
<mapping>
<str name="key">health</str>
<float name="value">78.9</float>
</mapping>
<mapping>
<str name="key">environment</str>
<float name="value">85.4</float>
</mapping>
</arr>
{code}
was:
*The Problem*
In some use cases, it would be useful to group key-value pairs in a single
field value.
For example, when passing a document to a classification engine, the document's
metadata may contain the classification taxonomy, classifications or topics
from that taxonomy, each with a relevance or confidence score from the engine.
Example from:
https://www.iptc.org/std/NewsCodes/treeview/mediatopic/mediatopic-en-GB.html
Taxonomy: IPTC
Topics:
- health: relevance=78.9
- education: relevance=62.4
- environment: relevance=85.4
This could be represented in Solr as individual "float" type fields, but in
this case, if more than one taxonomy is applied to the document, the relation
to the taxonomy for each metadata is lost and the indexed metadata becomes
unusable:
<float name="health">78.9</float>
<float name="education">62.4</float>
<float name="environment">85.4</float>
*Improvement*
A new type of field to group key-value pairs in a single field value:
<arr name="IPTC">
<mapping>
<str name="key">health</str>
<float name="value">78.9</float>
</mapping>
<mapping>
<str name="key">health</str>
<float name="value">78.9</float>
</mapping>
<mapping>
<str name="key">environment</str>
<float name="value">85.4</float>
</mapping>
</arr>
> Field type that has key-value pairs as field value
> --------------------------------------------------
>
> Key: SOLR-18023
> URL: https://issues.apache.org/jira/browse/SOLR-18023
> Project: Solr
> Issue Type: New Feature
> Affects Versions: 9.10, 10.0, main(11.0)
> Reporter: Isabelle Giguere
> Priority: Minor
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> *The Problem*
> In some use cases, it would be useful to group key-value pairs in a single
> field value.
> For example, when passing a document to a classification engine, the
> document's metadata may contain the classification taxonomy, classifications
> or topics from that taxonomy, each with a relevance or confidence score from
> the engine.
> Example from:
> https://www.iptc.org/std/NewsCodes/treeview/mediatopic/mediatopic-en-GB.html
> Taxonomy: IPTC
> Topics:
> - health: relevance=78.9
> - education: relevance=62.4
> - environment: relevance=85.4
> This could be represented in Solr as individual "float" type fields, but in
> this case, if more than one taxonomy is applied to the document, the relation
> to the taxonomy for each metadata is lost and the indexed metadata becomes
> unusable:
> {code:xml}
> <float name="health">78.9</float>
> <float name="education">62.4</float>
> <float name="environment">85.4</float>
> {code}
> *Improvement*
> A new type of field to group key-value pairs in a single field value:
> {code:xml}
> <arr name="IPTC">
> <mapping>
> <str name="key">health</str>
> <float name="value">78.9</float>
> </mapping>
> <mapping>
> <str name="key">health</str>
> <float name="value">78.9</float>
> </mapping>
> <mapping>
> <str name="key">environment</str>
> <float name="value">85.4</float>
> </mapping>
> </arr>
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]