Open topic with navigation

# AllowMultipleResults

This parameter determines how many results to return in cases where multiple matches begin at the same offset in the input text. By default, only one result can be returned, but you can use the `AllowMultipleResults` parameter if you want to return other matches (either from the same entity or from other entities).

Set `AllowMultipleResults` to one of the following options:

- `All` or `True`. This option returns all results at a specified offset.
- `No` or `False`. Only one result at a specified offset is returned.
- `OnePerEntity`. Up to one result at a specified offset per entity can be returned.

## Example

With the following entities, `Georgia` might return `Georgia (name)`, `Georgia (US state)` or `Georgia (country)`. By default, Eduction Server returns only one match. This is appropriate if it is not important to you that Georgia has multiple interpretations. Set the `AllowMultipleResults` configuration parameter to `All` to return all three matches. Set the `AllowMultipleResults` configuration parameter to `OnePerEntity` to return one match from each entity. This is appropriate if it is important to you that Georgia is a place and a name, but not that it refers to multiple places.

    <entity name="names">
      <entry headword="Georgia (name)">
        <synonym>Georgia</synonym>
      </entry>
      <entry headword="Henry (name)">
        <synonym>Henry</synonym>
      </entry>
    </entity>

    <entity name="places">
      <entry headword="Delaware (US state)">
        <synonym>Delaware</synonym>
      </entry>
      <entry headword="Georgia (US state)">
        <synonym>Georgia</synonym>
      </entry>
      <entry headword="Georgia (country)">
        <synonym>Georgia</synonym>
      </entry>
      <entry headword="Mongolia (country)">
        <synonym>Mongolia</synonym>
      </entry>
    </entity>

NOTE:

You can override the value of this parameter for specific actions by setting the AllowMultipleResults action parameter.

Type: | String
Default: | No
Required: | No
Configuration Section: | Eduction
Example: | `AllowMultipleResults=All`
See Also: | EntityN NonGreedyMatch

© 2014-2018 EntIT Software LLC, a Micro Focus company | Send documentation feedback to Micro Focus 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