# FTSFLAGS

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Messages](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.FTSFLAGS/

Combination of full-text search flag bitfields.

How the text of a full-text (any-field) condition is matched. Set at least one of
`search_metadata` and `search_filedata`. With neither `search_all_words` nor `search_any_words`,
the text is a Boolean query such as `sales AND invoice`.

- **Full name:** `MFiles.FTSFLAGS`
- **Proto file:** [`mfiles/enums.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/enums.proto)

<a id="fields"></a>

## Fields

| Field | Type | Number | Description |
|---|---|---|---|
| <a id="f-all"></a>`all` | `bool` | 1 | All flags set, including any future flags. Not useful in searches. |
| <a id="f-use_stemming"></a>`use_stemming` | `bool` | 2 | Also match other forms of the search words. |
| <a id="f-search_all_words"></a>`search_all_words` | `bool` | 3 | Match objects that contain all of the search words. |
| <a id="f-search_any_words"></a>`search_any_words` | `bool` | 4 | Match objects that contain any of the search words. |
| <a id="f-search_metadata"></a>`search_metadata` | `bool` | 5 | Search the property values of objects. |
| <a id="f-search_filedata"></a>`search_filedata` | `bool` | 6 | Search the contents of the files of objects. |
| <a id="f-search_aino"></a>`search_aino` | `bool` | 7 | Run a semantic search against the vault's Aino index instead of a keyword search. Fails if the vault has no enabled Aino index. See [SearchObjects](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSearch/SearchObjects/index.md) for what Aino results contain. |

<a id="used-in-fields"></a>

## Used in fields

- [`ExpressionUnion.AnyFieldData.options`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ExpressionUnion/index.md#t-AnyFieldData-options): Full-text search flags. Set `search_metadata`, `search_filedata` or both; with neither, the search fails with "Invalid search condition." See [FTSFLAGS](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.FTSFLAGS/index.md).
