Search attributes are attributes exposed to the search user. Oracle Secure Enterprise Search (SES) provides system-defined attributes, such as author and description, and enables administrators to create custom attributes.
When the indexed documents contain metadata, such as author and date information, you can let users refine their searches based on this information. For example, users can search for all documents by a particular author, that is, where the author attribute has a particular value.
Oracle Secure Enterprise Search has several default search attributes. They can be incorporated in search applications for a more detailed search and richer presentation. If an attribute List of Values (LOV) is available, then the crawler registers the LOV definition, which includes attribute value, attribute value display name, and its translation.
You can create, delete, and update custom attributes, and update the default attributes.
Creatable
name
--NAME=object_name -n object_name
None
create createAll delete deleteAll deleteList export exportAll exportList getAllObjectKeys update updateAll
The <search:Attrs>
element describes search attributes:
<search:searchAttrs> <search:searchAttr> <search:name> <search:type> <search:translations> <search:lovEntries> <search:lovEntry>> <search:lovValue> <search:sourceName> <search:translations>
Element Descriptions
Contains one or more <search:searchAttr>
elements.
Describes a search attribute. It contains these elements:
<search:name> <search:type> <search:translations> <search:lovEntries>
Name of the search attribute. (Required)
Data type of the attribute values. Set to one of these values: STRING
, NUMBER
, or DATE
. (Required)
Provides a display name. See "Providing Translations of Object Names".
Contains one or more <search:lovEntry>
elements, each describing a list of values (LOV).
<search:lovValue> <search:sourceName> <search:translations>
Describes a list of values. It contains these child elements:
Name of the list of values. (Required)
Name of the source for a source-specific list of values.
This XML document defines a search attribute named Copyright
:
<?xml version="1.0" encoding="UTF-8"?> <search:config productVersion="11.1.2.0.0" xmlns:search="http://xmlns.oracle.com/search"> <search:searchAttrs> <search:searchAttr> <search:name>Copyright</search:name> <search:type>DATE</search:type> </search:searchAttr> </search:searchAttrs> </search:config>