Now go back into the terminal and make sure you're cd'd into the waifusearch-0.1f
directory. From there, issue this command to run the new executable you just built in the previous post:
In a few seconds, you'll see the search prompt. Now, just type in any words you want to look for on /robowaifu/ . For example, here's the search for the phrase 'clone the repo locally':
This gives us two results. The first one, under the ORDERED
category, is from a post just a couple up ITT. BTW, 'ordered' just means that exact set of words in your search phrase were found & in that exact order
. The second result, under the UN-ORDERED
category, includes all those words too, just not in that exact order. It's all the way over in the /meta2 thread.
You probably already noticed that waifusearch defaults to showing crosslinks
in it's results list. This is so it will be easy for you to copypasta these results here onto /robowaifu/ , and have them work directly for everyone else automatically (for example, there is a search for 'Sophie' posted in the Library
You can change this to instead show full hyperlink URIs, which you personally can then copypasta into your browser instead.
To do this (just for now) you have to change a single flag inside the codefile main.cpp
and rebuild the program to switch modes. Quit waifusearch
(the letter 'q' to quit), go back into Juci, open the main.cpp file and scroll down until you find the variable named make_crosslinks
(~L48) , and change it from being 'true' to 'false'
Build again (and again, you'll see the '[2/2' linking success message when it's completed).
Then return to the terminal and rerun the program, and now waifusearch will show you the hyperlinks in it's results instead.
In the future, the plan is to provide several arguments to change the behavior of waifusearch, and the the crosslinks/hyperlinks setting will be one of them. Well, I hope you managed to successfully get the search tool set up on your RaspberryPi Anon. If you find anything interesting using it, be sure to post it somewhere in a good thread for us!
BTW, the OP of the Library
thread will occasionally have new updated JSON archives available. If you see a new one sometime, you can download it, then extract the resulting JSON out into the all_jsons
subdirectory of your project directory. This will update waifusearch's information. Simply restart the program afterwards and you'll be on the the latest data using that new archive.
There are a lot of other potential plans for the tool in the future, but this should be enough for you to go on with for now Anon. Please ask me any questions or let me know if you have any issues with the program ITT, thanks.
Cheers /robowaifu/ RPi Anons.