Community Component 25.1
Community Component Help

# BIASDISTCARTESIAN

The `BIASDISTCARTESIAN` field specifier allows you to boost the score of any document according to its distance from a specified point using Cartesian coordinates (X/Y).

TIP: If your document location field contains any shape other than a point, Knowledge Discovery calculates distances from the geometric center of the shape.

## Format

    FieldText=BIASDISTCARTESIAN{coordX,coordY,range,maxboost}:POSITION

`coordX` | The specified x coordinate.
`coordY` | The specified y coordinate.
`range` | The maximum distance from the specified coordinates, in the same units as used in your document field.
`maxboost` | The maximum percentage to boost the result.
`POSITION` | The document field or fields that contain the location value. You can use one of the following options to specify location fields: a single field. This field must contain a supported well-known text geometric object. See Supported Well-Known Text Geometric Objects. two fields, in the format `X:Y`, where `X` is the field that contains the x coordinate, and `Y` is the field that contains the y coordinate. You must specify the fields in the order `x:y`.

NOTE: You can optimize this field specifier by configuring your coordinate fields with the or property types. If you want to use a single field with well-known text definitions, you can optimize the field specifier only by using the unified property.

## Example

    FieldText=BIASDISTCARTESIAN{10,11,5,7}:X:Y

    FieldText=BIASDISTCARTESIAN{10,11,5,7}:POSITION

In these examples, all documents whose (X/Y) position is within a distance of 5 units of the point (`10,11`) are given a relevance boost. The maximum boost of `7` percent is given to documents at the given point. The boost decreases linearly down to 0 boost at 5 units.

In the first example, the location data is stored in two document fields, `X` and `Y`. In the second example, the location data is stored in a single `POSITION` field.

Copyright 2024 Open Text
Version 25.1 | Last updated January 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Community Component 25.1

Topic Title: BIASDISTCARTESIAN