# Keyword Occurrence Search

You can restrict the documents that match a query term to documents in which the number of occurrences of the term or phrase is within a specified range. Specify the range with a colon-separated pair of numbers. The maximum value that you can specify in the range is `32000`.

For example:

    action=Query&Text=Gene[3:7]

This query returns only documents in which Gene appears between three and seven times (inclusively).

    action=Query&Text="Gene Therapy"[5:8]

This query returns only documents in which the phrase Gene therapy appears between five and eight times (inclusively).

    action=Query&Text=Gen*[2:4]

This query returns only documents in which a term that starts with Gen (such as Gene or Generation) appears between two and four times, inclusively.

    action=Query&Text=(Gene OR DNA)[4:8] AND Therapy

This query returns only documents in which the term Gene or the term DNA appear between 4 and 8 times (inclusively), and the term Therapy occurs.

You can specify open-ended ranges. For example:

    action=Query&Text=Gene[10:]

This query returns only documents in which Gene appears 10 or more times.

You can also specify term weights and field restrictions. For example:

    action=Query&Text=cat[2:4]:DRETITLE + AND + cat[100][2:4]

© Copyright 2020 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 mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm