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