Knowledge Graph 25.2
Knowledge Graph Reference

# WeightFields

The name of the document field that contains the values that you want to use as the weight.

When your input data is in JSON format, use the JSON field name in `WeightFields`. When your input data comes from IDX format (for example, through CFS or a conversion script), use the following conventions for specifying your field names:

- For fields specified in IDX in the format `#DREFIELD fieldname="value"`, set `WeightFields` to `fieldname`.
- For special fields in IDX, such as `#DREREFERENCE` and `#DRETITLE`, set `Weightfield` to the special value, for example `DREREFERENCE`.

Set this parameter in the `[Edges]` section to define a weight field for all your documents and edge types. Set it in the individual edge type configuration sections to override the global weight field.

NOTE: If you set `WeightFields`, but have not set Weighting to `Field`, Knowledge Graph logs an error message and exits.

Type: | String
Default: |
Required: | No
Configuration Section: | Edges or [`MyEdgeType`]
Example: | `WeightFields=WEIGHT`
See Also: |

Copyright 2025 Open Text
Version 25.2 | Last updated April 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 Knowledge Graph 25.2

Topic Title: WeightFields