# 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: |

_FT_HTML5_bannerTitle.htm