The author explores the potential of BoxLang for developing a personal search utility for their blog, which comprises nearly 7,000 Markdown files. They previously created a Python script that indexed files and allowed terminal-based searches, though it was inefficient due to its need to parse all files every time. Now, they aim to replicate this functionality in BoxLang, utilizing new CLI scripting documentation that emphasizes customizability for varying file types, ultimately enhancing user efficiency in searching content directly from the terminal.
My 'index' is an in-memory array of data from the file system.
This is horribly inefficient as it has to parse the entire set of files for every search, but in my testing, the indexing aspect took a few seconds so it wasn't too bad.
Collection
[
|
...
]