Open topic with navigation

# MATCHRECURSE

The `MATCHRECURSE` field specifier matches documents containing a specified reference in a `ReferenceMemoryMappedType` field recursively to a maximum number of times. This field specifier must be restricted to a single `ReferenceMemoryMappedType` field.

## Format

    FieldText=MATCHRECURSE{Ref,RecurseNumber}:YourField

`Ref` | The initial reference. The matching is case-independent.
`RecurseNumber` | The maximum number of times to recursively return references using the value of the `ReferenceMemoryMappedType` field.
`yourField` | The name of the `ReferenceMemoryMappedType` field.

## Example

For example:

In this example, `PARENT` is a `ReferenceMemoryMappedType` field. The query

    action=query&fieldtext=MATCHRECURSE{MyRef,1}:PARENT

matches the document with reference `MyRef` (parent) and documents whose `PARENT` field contains `MyRef` (children). The query

    action=query&fieldtext=MATCHRECURSE{MyRef,2}:PARENT

matches the document with reference `MyRef` (parent), documents whose `PARENT` field contains `MyRef` (children), and documents whose `PARENT` field contains the references in the returned child documents (grandchildren).

© Copyright 2019 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm