scholarslab / new-salem-pelican

New Salem running on Pelican
1 stars 3 forks source link

Fix search results script and clean up corpus/index #4

Closed shane-et-al closed 6 years ago

shane-et-al commented 6 years ago

The corpus preview for the search was broken because it seems that search/index.html:55 seemed tailored for whatever particular application we took it from. There's also some kind of inconsistency between JS and the index builder script counting \n and \t characters as length one or two, so I just stripped out all of that from the corpus. Seems to work.

jeremyboggs commented 6 years ago

👍