monarch-initiative / monarch-legacy

Monarch web application and API
BSD 3-Clause "New" or "Revised" License
42 stars 37 forks source link

Search unstructured content of monarch website #291

Open cmungall opened 10 years ago

cmungall commented 10 years ago

Migrated from #289

There should be some way to search the content of the monarch site itself. Possibly via a google search to "site: monarchinitiative.org"

mellybelly commented 10 years ago

see also #82

nlwashington commented 10 years ago

i like the b&n search box (amazon too), that allows you to put in whatever, and you can also filter if you'd like:

screen shot 2014-09-12 at 9 40 31 am

mellybelly commented 10 years ago

@jgrethe assigning to you to help coordinate, please reassign as needed.

harryhoch commented 10 years ago

@cmungall, the hope is that you can work with Davis on this...

nlwashington commented 10 years ago

i have started working on this because i don't want it to get pushed around anymore. should have a functional first pass by the end of the day.

nlwashington commented 10 years ago

ok, i've added some functionality to search. it gets us part of the way there, but unfortunately is loaded with lots of iterations and no caching, so is very slow. we can always pull it out if you don't like it. we can discuss this strawman solution on thursday's call.

here's some examples: http://tartini.crbs.ucsd.edu/search/shha http://tartini.crbs.ucsd.edu/search/albinism http://tartini.crbs.ucsd.edu/search/hedgehog http://tartini.crbs.ucsd.edu/search/filamentous http://tartini.crbs.ucsd.edu/search/hearing%20loss

harryhoch commented 10 years ago

A couple of minor issues:

  1. The "category" and "term" labels are showing up even when those sections are empty.
  2. would be great to have sort controls on the columns.
nlharris commented 5 years ago

It seems like the search box on the website searches the db and not the website itself.

jmcmurry commented 5 years ago

This is normal behavior for a portal like ours, however, yes, there should be some way to search the docs. Perhaps as a facet within the search bar. Alternatively, all the unstructured content could be on a single page with sections so people can control+F it.

kltm commented 5 years ago

If you've gone SPA and don't mind an extra step during build, this may be useful: https://lunrjs.com/