# DistributeByDate

Set `DistributeByDate` to `True` if you want DIH to index data based on document date. Each document in a DREADD and DREADDDATA action is indexed by its `#DREDATE` field, or another DateType field configured in the Field Processing section. Each replace in a DREREPLACE action is indexed based on its `#DREDATE` line if it exists, or else sent to all child servers. Other actions are sent to all child servers. If enabled, the DIH is restricted so that you cannot alter the number of child servers.

You must use `[DateRangeN]` configuration sections to configure the date ranges, and the child servers to use for each date range. You can also set UnknownFieldValueAction to determine how to treat documents where the date field is missing or does not contain a valid date value in one of the configured ranges.

For both DIH stand-alone and unified configuration, you must set DateFormatCSVs in the `[Server]` section for date-based indexing to work.

When you set `DistributeByDate` to `True`, DIH always distributes documents according to the date. If a child server goes down, it queues the documents for that child server, and indexes them when the server becomes available. Unlike simple non-mirror mode, it does not redistribute the documents to available servers.

NOTE: You can use this distribution mode only when MirrorMode is set to `False`. If you attempt to configure this distribution mode when MirrorMode is set to `True`, DIH does not start.

Type: | Boolean
Default: | False
Required: | No
Configuration Section: | Server
Example: | `DistributeByDate=True`
See Also: | DateRangeN Configuration DateFormatCSVs UnknownFieldValueAction

_FT_HTML5_bannerTitle.htm