Categories are similar to related terms, but are organized into category groups by type. The possible category groups include: Source, Date, Language, People, Location, and Organization. Data in the <Category> item is used to refine a full text search from the current results.
Example:
<categories>
<Category type="Source" id="cSource/16867630274464995265"
title="story" occurrences="162" state="Displayed" />
<Category type="Source" id="cSource/16869313064066963393"
title="image" occurrences="62" state="Displayed" />
<Category type="Source" id="cSource/16870158577805744065"
title="video" occurrences="38" state="Displayed" />
<Category type="Source" id="cSource/16870151980768909249"
title="audio" occurrences="1" state="Displayed" />
<Category type="Date" id="cDate/14514604811718427281"
title="2009" occurrences="254" state="Displayed">
<categories>
<Category type="Date" id="cDate/9831696842050193299"
title="11" occurrences="132" state="Displayed" />
<Category type="Date" id="cDate/9831837579538548627"
title="10" occurrences="102" state="Displayed" />
<Category type="Date" id="cDate/9832823291712849811"
title="09" occurrences="19" state="Displayed" />
</categories>
</Category>
<Category type="Language" id="cLanguage/15987730302945211708"
title="en" occurrences="247" state="Displayed" />
<Category type="Language" id="cLanguage/15987446079189431612"
title="nl" occurrences="2" state="Displayed" />
<Category type="People" id="cPeople/13250368167757173146"
title="Janet Jackson" occurrences="5" state="Displayed" />
<Category type="Location" id="cLocation/16783464959236036089"
title="US" occurrences="47" state="Displayed" />
<Category type="Location" id="cLocation/10134033842797429229"
title="London" occurrences="26" state="Displayed" />
<Category type="Organization" id="cOrganization/95167517059522883"
title="Reuters" occurrences="38" state="Displayed" />
<Category type="Organization" id="cOrganization/13779967997467484"
title="SONY" occurrences="12" state="Displayed" />
</categories>
Attribute values found in the Category node:
type |
Type of category term: Source, Date, Language, People, Location, or Organization |
id |
The refinement id for the term, used to include or exclude results |
title |
name of the category item |
occurrences |
number of results that contain this term, can be used to verify results after a refinement |
state |
display status, options are: Displayed, Excluded or Refined Displayed: results include objects where this term occurs Refined: results include ONLY objects where this term occurs Excluded: objects containing this term are excluded from the results |
See Also