Building a File Search Script in Python

As I’ve said many times lately, I’m trying to learn Python. I used it for last years Advent of Code and successfully finished ten days of challenges. I’m also on the lookout for other places I can use it, even if ju…


This content originally appeared on Raymond Camden and was authored by Raymond Camden

As I've said many times lately, I'm trying to learn Python. I used it for last years Advent of Code and successfully finished ten days of challenges. I'm also on the lookout for other places I can use it, even if just to provide a way to practice the language. Today I looked into making a change to my search interface. It uses Algolia for indexing and searching. Currently it sorts results by the strength of the match, but I was looking for a way to optionally sort by date instead. Algolia supports this via "replicas", a copy of your index. It supports the idea of a "virtual replica" which is the most optimal way of doing it. Unfortunately, this is not supported on their free tier. To be clear, Algolia provides awesome value at their free tier so I don't blame them for charging for this, but I needed a solution of some sort. Enter Python!


This content originally appeared on Raymond Camden and was authored by Raymond Camden


Print Share Comment Cite Upload Translate Updates
APA

Raymond Camden | Sciencx (2022-01-03T18:00:00+00:00) Building a File Search Script in Python. Retrieved from https://www.scien.cx/2022/01/03/building-a-file-search-script-in-python/

MLA
" » Building a File Search Script in Python." Raymond Camden | Sciencx - Monday January 3, 2022, https://www.scien.cx/2022/01/03/building-a-file-search-script-in-python/
HARVARD
Raymond Camden | Sciencx Monday January 3, 2022 » Building a File Search Script in Python., viewed ,<https://www.scien.cx/2022/01/03/building-a-file-search-script-in-python/>
VANCOUVER
Raymond Camden | Sciencx - » Building a File Search Script in Python. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/01/03/building-a-file-search-script-in-python/
CHICAGO
" » Building a File Search Script in Python." Raymond Camden | Sciencx - Accessed . https://www.scien.cx/2022/01/03/building-a-file-search-script-in-python/
IEEE
" » Building a File Search Script in Python." Raymond Camden | Sciencx [Online]. Available: https://www.scien.cx/2022/01/03/building-a-file-search-script-in-python/. [Accessed: ]
rf:citation
» Building a File Search Script in Python | Raymond Camden | Sciencx | https://www.scien.cx/2022/01/03/building-a-file-search-script-in-python/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.