xref: /haiku/src/add-ons/kernel/file_systems/websearchfs/README.websearchfs.txt (revision ed24eb5ff12640d052171c6a7feba37fab8a75d1)
1Welcome to the Web Search FileSystem for BeOS™, Zeta™ and Haiku®.
2Copyright© 2004, 2005, François Revol.
3
4DuckDuckGo is a trademark of DuckDuckGo.
5BeOS is a trademark of PalmSource.
6Zeta is a trademark of yellowTAB GmbH.
7Haiku is a trademark of Haiku, Inc.
8
9REQUIRES USERLANDFS
10
11mkdir /Web; mount -t userlandfs -p websearchfs /Web
12
13Use "Search the Web" query template in this folder to search anything on the web.
14The search results are kindly provided by DuckDuckGo (https://duckduckgo.com).
15
16or from the commande line:
17
18    query -v /Web '((name=="*QUESTION*")&&(BEOS:TYPE=="application/x-vnd.Be-bookmark"))'
19
20where QUESTION is what you want to search. (websearchfs currently filters queries to only answer those).
21You will want to pipe that to catattr to get the URLs:
22
23    query -v /Web '((name=="*site:haiku-os.org userlandfs*")&&(BEOS:TYPE=="application/x-vnd.Be-bookmark"))' | xargs catattr META:url
24
25(note that won't work with sync_unlink true in the settings)
26
27Included are 2 scripts, search and imlucky that runs such a query using the arguments given on the command line.
28
29Enjoy.
30