Docs

Document Numbering

Lunr uses configurable document number formats and sequence sets to automatically generate unique document numbers, ensuring consistency, reducing manual effort, and preventing duplicate numbering.

Document Number Formats

Document Number Formats allow for new documents to be assigned a number automatically. This saves time and reduces the chance of duplicate numbers being assigned by accident.

Multiple document number formats can be created.

To add a new number format,

  1. Click the Add Format button and give the new format a recognisable description, then click the Create button.

  2. Now that a number format has been created, edit the fields to specify when the format should apply.

  • Conditions specifies when a document matches a specific tag value. Additional conditions can be specified by clicking the + button.
  • Number Format specifies the tags used to build the document number. In this case, the Sequence, NextSheetNumber, and SheetNumberAlpha tags are included. Tags are surrounded by , and other items such as dashes or characters can be included between the tags.
  • Sequence Numbers is the length of the number used in the sequence tag, padded with leading zeroes when necessary.

Sequence Sets

Sequence Sets are used in document numbering to keep track of the number sequence.

These are used for the initial migration of documents into Lunr using the highest sequence value for each document number format in your existing application, and should never need to be edited.

Lunr will use these values as a starting point for future documents.

On this page