field-start
- Last Updated: May 29, 2026
- 1 minute read
- Semaphore
- Documentation
The field-start attribute creates additional rules that decreases the weighting based on the distance the match appears from the start of the selected field (or any field if no field is selected).
<with>
..
<text data="{field_start}"/>
</with>
The detail behind how the with rule is used to alter the score can be found here.
Applies to
Values
| Values | Description |
|---|---|
| 0 | Do not generate with rules |
| 1 | Generate the WITH rules |
Example
As an example, for the label “Information architecture” the template fragment
<phraselist field="body" field-start="1" />
generates the output:
<with weight="100">
<text data="{field_start}" field="body"/>
<phrase case="0" data="Information architecture" field="body" stem="1"/>
</with>