> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Advanced pre-search functions

> Overview of advanced pre-search functions in the FlexiLayout language, covering search control, search area specification, and Nearest functions.

<CardGroup cols={2}>
  <Card title="Controlling searches" icon="magnifying-glass" href="/flexi-capture/fls/language/search-control">
    Control element searches with Optional, StopIfFound, DontFind, and MaxHypothesesCount.
  </Card>

  <Card title="Specifying the search area" icon="gear" href="/flexi-capture/fls/specifying-area">
    Define search constraints, area geometry, and fuzzy rectangles for elements.
  </Card>

  <Card title="Nearest functions" icon="gear" href="/flexi-capture/fls/language/nearest">
    Select the hypothesis closest to a point, element, or page edge.
  </Card>
</CardGroup>
