spyglass-search / spyglass

A personal search engine: Create a searchable library from your personal documents, interests, and more!
https://docs.spyglass.fyi
GNU Affero General Public License v3.0
2.54k stars 58 forks source link

How to debug custom lenses? #508

Closed mainrs closed 10 months ago

mainrs commented 10 months ago

My lenses index properly, but searching for text that is present at the given HTML page returns no matches. Can I somehow delete all indices and force a re-index?

a5huynh commented 10 months ago

@mainrs if you don't mind attaching the lens here, I'd be happy to help debug it with you. Otherwise, deleting the data folder will force spyglass to reindex everything.

mainrs commented 10 months ago

I issue was faulty Ron syntax. Would be nice if I could get an error message somehow. Maybe add a list item for spyglasses that failed to load property alongside the ones that did load. And use the filename as their name. 🤔 And attach the deserialization error to them as a description text.