coltrane icon indicating copy to clipboard operation
coltrane copied to clipboard

Investigate search

Open adamghill opened this issue 3 years ago • 3 comments
trafficstars

Maybe via https://lunr.readthedocs.io/?

adamghill avatar Jan 26 '22 03:01 adamghill

I'll work an implementation for this base on lunr.py and the django cache system for the backend logic.

But for the frontend (the search bar), I'm not so sure. I could write the javascript myself, but frankly, that sounds painful and my js is not that great. There's also django-unicorn and htmx that I've been thinking about. Django-unicorn might be too cumbersome for something so simple, htmx would be more appropriate but it's still another dependency to add to coltrane. I can work with any of the three (Including writing custom js for this) but what do you think is the better option? I'm also open to any other method for implementing this.

Tobi-De avatar Sep 29 '22 09:09 Tobi-De

We could also just have a search page that works for now (Python-only) and not try to implement a type-ahead or anything in JavaScript? I think in the future if we wanted anything fancy, I would probably advocate for htmx (even though Unicorn is my project, too 😆).

adamghill avatar Sep 29 '22 22:09 adamghill

We could also just have a search page that works for now (Python-only) and not try to implement a type-ahead or anything in JavaScript? I think in the future if we wanted anything fancy, I would probably advocate for htmx (even though Unicorn is my project, too 😆).

Fine by me

Tobi-De avatar Sep 30 '22 04:09 Tobi-De