Dev:APIyacysearch
Aus YaCyWiki
Inhaltsverzeichnis |
/yacysearch.rss
Parameters
- query = string of space separated search terms
- if search contains the keyword RECENT YaCy sorts the search result by date
- if search consist of two search term and the keyword NEAR, YaCy will raise the ranking if the two terms appear close together
- the keyword LANGUAGE:lang can be used to select the desired language e.g. LANGUAGE:en
- contentdom = [text|image|audio|video|app]
- count = deprecated see maximumRecords
- offset = deprecated see startRecord
- resource = [global|local]
- constraint =
- only index pages: value = AQAAAA
- prefermaskfilter = RegExp
- urlmaskfilter = RegExp
- verify = [true|false]
- true: YaCy 'verifies the result URLs and returns a snippet
- false: can be used to speed up search
- display = [0|1|2]
- Enter = [Search|?]
- former =
- maximumRecords = number of items YaCy should return
- startRecord = first record to return e.g. for maximumRecords=10 and startRecord=11 YaCy returns results 11-20
- indexof = identical to constraint=AQAAAA
- lr = desired language e.g. lr=lang_en
Example
/yacysearch.rss?display=0&query=test&Enter=Search&former=&verify=true&contentdom=text&maximumRecords=10&startRecord=0&resource=global&urlmaskfilter=.*&prefermaskfilter=&indexof=off
<rss version="2.0"
xmlns:yacy="http:// www.yacy.net/"
xmlns:opensearch="http:// a9.com/-/spec/opensearch/1.1/"
xmlns:atom="http:// www.w3.org/2005/Atom">
<channel>
<title>YaCy P2P-Search for test</title>
<description>Search for test</description>
<link>http:// localhost:8080/yacysearch.html?query=test&resource=global&contentdom=text&verify=true</link>
<image>
<url>http:// localhost:8080/env/grafics/yacy.gif</url>
<title>Search for test</title>
<link>http:// localhost:8080/yacysearch.html?query=test&resource=global&contentdom=text&verify=true</link>
</image>
<opensearch:totalResults>0</opensearch:totalResults>
<opensearch:startIndex>0</opensearch:startIndex>
<opensearch:itemsPerPage>5</opensearch:itemsPerPage>
<atom:link rel="related" href="opensearchdescription.xml" type="application/opensearchdescription+xml"/>
<opensearch:Query role="request" searchTerms="test" />
<item>
<title>The Jam - Live On The Old Grey Whistle Test</title>
<link>http: //www.youtube.com/watch?v=Hc2ZIQ-xp7o&feature=related</link>
<description></description>
<pubDate>Tue, 16 Sep 2008 02:00:00 +0200</pubDate>
<guid isPermaLink="false">Bblo-QQnvQBY</guid>
</item>
...
<yacy:topwords>
<yacy:item>adsl</yacy:item>
<yacy:item>cociente</yacy:item>
...
</yacy:topwords>
</channel>
</rss>
Used
- opensearch
- YaCy-UI
