dcppc / centillion

Centillion is the Data Commons search engine. One centillion is 3.03 log-times better than a googol.
https://dcppc.github.io/centillion
MIT License
12 stars 3 forks source link

Sorting results by date and by type #141

Open charlesreid1 opened 5 years ago

charlesreid1 commented 5 years ago

we can sort by type, but only aphabetically, and it's really awkward.

need a set of checkboxes to select/filter document types (link form elements to filtering a data table).

need to have a date field if it is available, use modified time if available but otherwise use created time. and make it a separate column that's sortable. things are going to get crowded.

might require rethinking the design to be something more like...

+-------------------------------------------------------+
|                                                       |
|            c e n t i l l i o n                        |
|                                                       |
|  +---------------------------------------------+      |
|  | input: search box                           |      |
|  +---------------------------------------------+      |
|  +---------------------------------------------+      |
|  | input: search filters/options/etc           |      |
|  +---------------------------------------------+      |
|  +----+  +-------------------------------------+      |
|  |    |  |                                     |      |
|  | 1  |  |  2                                  |      |
|  |    |  |                                     |      |
|  +----+  +-------------------------------------+      |
|                                                       |
|   1 = score                                           |
|                                                       |                       +
|   2 = search result title                             |                       +
|       search result date                              |
|       search result link                              |
|       search result summary                           |
|                                                       |
|                                                       |
|                                                       |
|                                                       |
|                                                       |
+-------------------------------------------------------+
charlesreid1 commented 5 years ago

This should be revisited now that we have the single column results format.

Two options: