spyglass-search/spyglass

How to debug custom lenses?

mainrs opened this issue · 2 comments

mainrs commented

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?

@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

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.