# SearchItemOptions

> Indicates how the search item description needs to be formatted when presented to the user.

## Definition

* **Type:** Enum
* **Namespace:** [UnityEditor.Search](/engine/6000.5/script-reference/unityeditor/search.md)
* **Assembly:** UnityEditor

```csharp
[Flags]
public enum SearchItemOptions
```

## Examples

```csharp
private static SearchItem SearchLogEntry(SearchContext context, SearchProvider provider, LogEntry logEntry)
{
    if (!SearchUtils.MatchSearchGroups(context, logEntry.msgLowerCased, true))
        return null;

    var logItem = provider.CreateItem(context, logEntry.id, ~logEntry.lineNumber, logEntry.msg, null, null, logEntry);
    logItem.options = SearchItemOptions.Ellipsis | SearchItemOptions.RightToLeft | SearchItemOptions.Highlight;
    return logItem;
}
```

## Fields

| Value                                                                                                      | Description                                                                                                                                                             |
| ---------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [AlwaysRefresh](/engine/6000.5/script-reference/unityeditor/search/searchitemoptions/alwaysrefresh.md)     | Indicates that the item will always be refreshed.                                                                                                                       |
| [Compacted](/engine/6000.5/script-reference/unityeditor/search/searchitemoptions/compacted.md)             | Uses Label instead of description for shorter display.                                                                                                                  |
| [CustomAction](/engine/6000.5/script-reference/unityeditor/search/searchitemoptions/customaction.md)       | Indicates that the item is used as a built-in or custom user action that should always be displayed on top of result views.                                             |
| [Ellipsis](/engine/6000.5/script-reference/unityeditor/search/searchitemoptions/ellipsis.md)               | If the description is longer than the width of the search view, truncates the description and adds an ellipsis.                                                         |
| [FullDescription](/engine/6000.5/script-reference/unityeditor/search/searchitemoptions/fulldescription.md) | The item description that is displayed in full mode. This is usually the case when the description is displayed in the Preview Inspector as opposed to the Result View. |
| [FuzzyHighlight](/engine/6000.5/script-reference/unityeditor/search/searchitemoptions/fuzzyhighlight.md)   | Highlights parts of the description that match the Fuzzy Search Query.                                                                                                  |
| [Highlight](/engine/6000.5/script-reference/unityeditor/search/searchitemoptions/highlight.md)             | Highlights parts of the description that match the Search Query.                                                                                                        |
| [None](/engine/6000.5/script-reference/unityeditor/search/searchitemoptions/none.md)                       | Uses default description.                                                                                                                                               |
| [RightToLeft](/engine/6000.5/script-reference/unityeditor/search/searchitemoptions/righttoleft.md)         | If the description is longer than the search view, keeps the last characters.                                                                                           |
