peterwebster / henson

Master data store for the Hensley Henson Journals project, and issue tracker. The application code is kept elsewhere.
1 stars 1 forks source link

Context-sensitive show of filter options in search results #229

Open peterwebster opened 5 years ago

peterwebster commented 5 years ago

@nomoregrapes something to think about for some later visit, maybe.

Searches like this, which contain no results from journals, still show the option to search by relevance and by journal date. https://henson-test.durham.ac.uk/?utf8=%E2%9C%93&search_field=only_people&q=knowling

We could have it drop out, or think about other sort criteria (though I'm not sure what).

nomoregrapes commented 5 years ago

Relevance would still be relevant (it's the order Solr thinks you wanted results) and I think is the only field that crosses all types of results.

You could do "number of journal mentions/references" but I'm not sure how easy that is to make an option, or how much it might slow down the search.

peterwebster commented 5 years ago

Not a priority this one @nomoregrapes but I mention it in case it is one that can be easily dealt with while you're on with #222 . I imagine a situation where, if a search returns no results for journals, then the 'Sort by journal date' just drops out of the drop-down options?