Erik Mogensen
2015-05-21 23:48:13 UTC
Hi!
When providing <Query role="subset"> elements, we have a need to put
certain such Query subsets together into logical groups.
Say we have a query and there are four subsets, each a value to the
"custom:foo" parameter: A1, A2, B1 and B2:
<Query searchTerms="example" role="subset" title="A1" custom:foo="A1"/>
<Query searchTerms="example" role="subset" title="A2" custom:foo="A2"/>
<Query searchTerms="example" role="subset" title="B1" custom:foo="B1"/>
<Query searchTerms="example" role="subset" title="B2" custom:foo="B2"/>
now our UX people want to group the As and the Bs, and provide a header for
the As and the Bs.
I don't want them to infer grouping based on the title or even the value of
"custom:foo". At the time of making these Query elements, the server knows
very well which ones belong together, and even what they "are" so it would
be useful for the OpenSearch response to say something about which ones
belong together. Say, for example, a "group" attribute
<Query searchTerms="example" role="subset" title="A1" custom:foo="A1"
group="A"/>
<Query searchTerms="example" role="subset" title="A2" custom:foo="A2"
group="A"/>
<Query searchTerms="example" role="subset" title="B1" custom:foo="B1"
group="B"/>
<Query searchTerms="example" role="subset" title="B2" custom:foo="B2"
group="B"/>
Now the UI can group the As together under the heading "A", and group the
Bs together under the heading "B".
A:
A1
A2
B:
B1
B2
Clients showing subset queries in a UI would be suggested that if there are
many Query elements, that the group attribute MAY be used to show related
Query elements together under the heading of the group attribute. The
group attribute doesn't help with e.g. an icon, but we could ignore that
for now.
Does this sound like somehing useful? Have I missed a draft that solves
this problem?
When providing <Query role="subset"> elements, we have a need to put
certain such Query subsets together into logical groups.
Say we have a query and there are four subsets, each a value to the
"custom:foo" parameter: A1, A2, B1 and B2:
<Query searchTerms="example" role="subset" title="A1" custom:foo="A1"/>
<Query searchTerms="example" role="subset" title="A2" custom:foo="A2"/>
<Query searchTerms="example" role="subset" title="B1" custom:foo="B1"/>
<Query searchTerms="example" role="subset" title="B2" custom:foo="B2"/>
now our UX people want to group the As and the Bs, and provide a header for
the As and the Bs.
I don't want them to infer grouping based on the title or even the value of
"custom:foo". At the time of making these Query elements, the server knows
very well which ones belong together, and even what they "are" so it would
be useful for the OpenSearch response to say something about which ones
belong together. Say, for example, a "group" attribute
<Query searchTerms="example" role="subset" title="A1" custom:foo="A1"
group="A"/>
<Query searchTerms="example" role="subset" title="A2" custom:foo="A2"
group="A"/>
<Query searchTerms="example" role="subset" title="B1" custom:foo="B1"
group="B"/>
<Query searchTerms="example" role="subset" title="B2" custom:foo="B2"
group="B"/>
Now the UI can group the As together under the heading "A", and group the
Bs together under the heading "B".
A:
A1
A2
B:
B1
B2
Clients showing subset queries in a UI would be suggested that if there are
many Query elements, that the group attribute MAY be used to show related
Query elements together under the heading of the group attribute. The
group attribute doesn't help with e.g. an icon, but we could ignore that
for now.
Does this sound like somehing useful? Have I missed a draft that solves
this problem?
--
-mogsie-
--
You received this message because you are subscribed to the Google Groups "OpenSearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opensearch+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/opensearch.
For more options, visit https://groups.google.com/d/optout.
-mogsie-
--
You received this message because you are subscribed to the Google Groups "OpenSearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opensearch+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/opensearch.
For more options, visit https://groups.google.com/d/optout.