- Web servers may now deliver YaCy-specific http header field with a
title and keywords. The new http header fields are:
X-YaCy-Media-Title - to be used for media (image, audio, video) titles
X-YaCy-Media-Keywords - to be used for media (image, audio, video)
keywords
- both fields are written to document fields title and keywords and are
searched also during image search.
- to make the usage of arbitrary http header fields (including this new
fields) possible in the /api/push_p.json servlet, a new POST argument is
also introduced to push http header fields. The new POST attribute is
named "responseHeader-X" (where X is the counter). It is allowed to use
this attribute as multi-attribute several times, each can be filled with
a http header line.
- see /api/push_p.html for examples
<dd>responseHeader-#[count]#=<inputname="responseHeader-#[count]#"type="text"value="X-YaCy-Media-Keywords:uno dos tres cuatro cinco"size="80"maxlength="200"></dd>
publicstaticfinalStringX_YACY_MEDIA_TITLE="X-YaCy-Media-Title";// can be attached to media files which do not have metadata; this will be used as title
publicstaticfinalStringX_YACY_MEDIA_KEYWORDS="X-YaCy-Media-Keywords";// can be attached to media files which do not have metadata; this will be used as keywords (space-separared list of words)