# Cluster Results

If you perform a `Query`, `Suggest`, or `SuggestOnText` query, you can set `Cluster` to `True` in the action to cluster the results that the query produces.

The IDOL Content componentreturns an `<autn:cluster>` field for each result that contains the ID of the cluster into which the result has been grouped. ID 1 is given to the cluster that forms around the most relevant result document. After this cluster forms, the cluster with the ID 2 forms around the most relevant of the remaining results, and so on.

The `ClusterThreshold` parameter in the IDOL Content component configuration file sets the percentage relevance that results must have to each other to group them in one cluster.

For example:

    action=Query&Text=cats&Cluster=True

The IDOL Content component clusters the results of the query above, and returns the ID of the cluster that each result belongs to in an `<autn:cluster>` field:

    <autn:hit>
        <autn:reference>http://example.wikipedia.org/wiki/Big Cat Rescue</autn:reference>
        <autn:id>595644</autn:id>
        <autn:section>0</autn:section>
        <autn:weight>88.04</autn:weight>
        <autn:cluster>1</autn:cluster>
        <autn:clustertitle>Big Cat Rescue, Easy Street</autn:clustertitle>
        <autn:links>CAT</autn:links>
        <autn:database>Wikipedia</autn:database>
        <autn:title>Big Cat Rescue</autn:title>
    </autn:hit>
    <autn:hit>
        <autn:reference>http://example.wikipedia.org/wiki/The Cat in the Hat</autn:reference>
        <autn:id>229422</autn:id>
        <autn:section>1</autn:section>
        <autn:weight>86.93</autn:weight>
        <autn:cluster>2</autn:cluster>
        <autn:clustertitle>Allan, ballad, Hat, Krinklebine</autn:clustertitle>
        <autn:links>CAT</autn:links>
        <autn:database>Wikipedia</autn:database>
        <autn:title>The Cat in the Hat</autn:title>
    </autn:hit>
    <autn:hit>
        <autn:reference>http://example.wikipedia.org/wiki/The Cat in the Hat</autn:reference>
        <autn:id>229421</autn:id>
        <autn:section>0</autn:section>
        <autn:weight>86.93</autn:weight>
        <autn:cluster>3</autn:cluster>
        <autn:clustertitle>sight vocabulary, Cat, Hat, Seuss</autn:clustertitle>
        <autn:links>CAT</autn:links>
        <autn:database>Wikipedia</autn:database>
        <autn:title>The Cat in the Hat</autn:title>
    </autn:hit>
    <autn:hit>
        <autn:reference>http://example.wikipedia.org/wiki/Cat</autn:reference>
        <autn:id>56711</autn:id>
        <autn:section>18</autn:section>
        <autn:weight>86.93</autn:weight>
        <autn:cluster>4</autn:cluster>
        <autn:clustertitle>breeds Polydactyl cat, Halloween, List, pets</autn:clustertitle>
        <autn:links>CAT</autn:links>
        <autn:database>Wikipedia</autn:database>
        <autn:title>Cat</autn:title>
    </autn:hit>

_FT_HTML5_bannerTitle.htm