<div class="gmail_quote">2010/6/21 Sebastian Trüg <span dir="ltr">&lt;<a href="mailto:trueg@kde.org">trueg@kde.org</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

The idea is that one restriction is one facet and those can be put in<br>
groups. A group can be exclusive (for dates or types) or not (tags for<br>
example). The a group can also have a range type which can be used by<br>
the gui to create a range selection based on that type.<br>
<br></blockquote><div><br></div><div>The introduction of a range is interesting; are you sure you are not confusing the concept of &quot;facet&quot; with &quot;term&quot; (not Query::Term)? I mean, your idea of facet+group looks like the current idea of term+facet... I mean, currently facets can be exclusive or not, and terms are a single choice for each facet (for example a tag, or a temporal period, or a document type).</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
These groups could then be added to a model (the only reason for using a<br>
model is that it can easily be displayed in a treeview - might be<br>
overkill) which in turn could be filtered by a custom<br>
QSortProxyFilterModel which hides all facets that do not change the<br>
result (i.e. could of 0 or the same as the result set).<br><br></blockquote></div><div><br></div>Which is currently what I am already doing in the tags facet (with its list model and filter); the only thing that gives me some doubts, in your idea, is why should I put every group in a single model: each facet should, IMHO of course, have its visual representation, separated from the others... or, at least, I cannot imagine a single UI element with more than one facet :)<br clear="all">

<br>-- <br>Sivieri Alessandro<br><a href="mailto:alessandro.sivieri@gmail.com">alessandro.sivieri@gmail.com</a><br><a href="http://www.chimera-bellerofonte.eu/">http://www.chimera-bellerofonte.eu/</a><br><a href="http://www.poul.org/">http://www.poul.org/</a><br>