The following sections describe how to work with Endeca properties.

Use the Properties view to see all Endeca properties in a project simultaneously.

The Properties view displays information about all of the Endeca properties in your project, in tabular format. You can add, remove, or modify Endeca properties here, as well as access more detailed information about an individual property.

To open the Properties view:


The time, datetime, and duration property types let you identify date and time-related values as such so that the MDEX Engine handles those values appropriately.

For example, it is not meaningful to add the contents of two String properties (that is, Alpha properties), and a query that attempts this operation causes an error. Similarly, date and time-related operations, such as extracting the year out of a date property, are limited to date/time types.

To support dates and times, the Presentation API uses the Property class to represent key-value pairs, where the value is a String that represents a date, datetime, or duration. The front-end Web application may display this value without interpreting it, or it can use libraries to convert the value into a pretty-printed string that is appropriate for human consumption. In other words, the application may convert the String into a java.util.Date object (for Java) or DateTime object (for .NET), which can then be formatted using the standard Java and .NET calendar utilities, respectively.

The String value associated with a time, datetime, or duration contains an integer number. The specification for this number is as follows:

For example, “1:00PM” or “13:00” is represented as “46800000” because:

13 hours *

60 minutes / hour *

60 seconds / minute *

1000 milliseconds / second =

46800000 milliseconds

For example, “August 26, 2004 1:00PM” is represented as “1093525200000” because:

12656 days *

24 hours / day *

60 minutes / hour *

60 seconds / minute *

1000 milliseconds / second +

46800000 milliseconds (13 hrs) =

1093525200000 milliseconds

For example,“100 days” is represented as “8640000000” because:

100days *

24 hours / day *

60 minutes / hour *

60 seconds / minute *

1000 milliseconds / second =

8640000000 milliseconds

Endeca distinguishes time, which represents time, from datetime, which represents a date and time, because it allows us to reduce the memory and storage footprint of applications that include only times. It also allows applications to explicitly detach a time from a specific date.

The duration type holds relative datetime values. This type provides application developers the ability to store values like “2 minutes” or “3 years.” In other words, values that should not be interpreted as absolute dates or times.

You use the Property editor to create a new Endeca property or modify the attributes of an existing one.

Option

Description

Name

The name of the Endeca property. Property names are case sensitive.

Note

Properties and dimensions share a namespace in the Endeca MDEX Engine. For this reason, you should not use the same name for both a property and a dimension.

Type

A drop-down list where you can select from the following property types:

Note

The Reference and File Path property types has been deprecated and should not be used for new implementations.

Prepare sort offline

When checked, record sorting on this Endeca property is optimized.

Rollup

Enables aggregated Endeca record creation by allowing rollups based on this Endeca property.

Enable for record filters

When checked, enables this Endeca property for record filtering, which presents a subset of the data to the end-user. For more information about using record filters, see the Endeca Advanced Development Guide.

Use for record spec

When checked, specifies that you want to use this Endeca property as a record specifier (a unique string-based identifier). Record specifiers are required to support the partial updates feature and Term Discovery features. Even though those two features are the only two that require a record spec, Oracle recommends that you assign one property in the project as the record spec.

Show with record list

When checked, enables this Endeca property to appear in the record list display. Any records that are tagged with this property will have this value shown as part of their entry in the record list.

Show with record

When checked, allows this property to appear on the record page. Any records that are tagged with this Endeca property will have this property shown as part of their entry on the record page.

Language

Specifies the language for this property so that the MDEX Engine can perform language-specific operations correctly. If your application tends to have mixed-language records, and the languages are segregated into different properties, setting a per-property language ID might be appropriate. For more information about language settings, see the Endeca Advanced Development Guide.


Copyright © Legal Notices