# FtsOptions

Artifact: [androidx.room3:room3-common](https://developer.android.com/jetpack/androidx/releases/room3) [View Source](https://cs.android.com/search?q=file:androidx/room3/FtsOptions.kt+class:androidx.room3.FtsOptions) Added in [3.0.0](https://developer.android.com/jetpack/androidx/releases/room3#3.0.0)

*** ** * ** ***

Common/AllAndroid/JVMNative/C/iOSJavaScript
- Cmn

  ```
  object FtsOptions
  ```

*** ** * ** ***

Available option values that can be used with `https://developer.android.com/reference/kotlin/androidx/room3/Fts3`, `https://developer.android.com/reference/kotlin/androidx/room3/Fts4`\&`https://developer.android.com/reference/kotlin/androidx/room3/Fts5`.

## Summary

| ### Nested types |
|---|
| `enum https://developer.android.com/reference/kotlin/androidx/room3/FtsOptions.Detail : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-enum/index.html<https://developer.android.com/reference/kotlin/androidx/room3/FtsOptions.Detail>` |
| `enum https://developer.android.com/reference/kotlin/androidx/room3/FtsOptions.MatchInfo : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-enum/index.html<https://developer.android.com/reference/kotlin/androidx/room3/FtsOptions.MatchInfo>` |
| `enum https://developer.android.com/reference/kotlin/androidx/room3/FtsOptions.Order : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-enum/index.html<https://developer.android.com/reference/kotlin/androidx/room3/FtsOptions.Order>` |

| ### Constants |
|---|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/room3/FtsOptions#TOKENIZER_ASCII()` The name of the tokenizer which assumes all characters outside the ASCII codepoint range (0-127) are to be treated as token characters. | Cmn |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/room3/FtsOptions#TOKENIZER_ICU()` The name of a tokenizer implemented by the ICU library. | Cmn |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/room3/FtsOptions#TOKENIZER_PORTER()` The name of the tokenizer based on the Porter Stemming Algorithm. | Cmn |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/room3/FtsOptions#TOKENIZER_SIMPLE()` The name of the default tokenizer used on FTS3 and FTS4 tables. | Cmn |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/room3/FtsOptions#TOKENIZER_TRIGRAM()` The name of the tokenizer that implements a trigram tokenizer that indexes every three-character sequence in the input text. | Cmn |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/room3/FtsOptions#TOKENIZER_UNICODE61()` The name of the tokenizer that classifies all unicode characters as either "separator" or "token" characters according to rules in Unicode Version 6.1. | Cmn |

## Constants

### TOKENIZER_ASCII

Cmn Added in [3.0.0](https://developer.android.com/jetpack/androidx/releases/room3#3.0.0)

```
const val TOKENIZER_ASCII: String
```

The name of the tokenizer which assumes all characters outside the ASCII codepoint range (0-127) are to be treated as token characters.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/room3/Fts5#tokenizer()` |   |
| `https://developer.android.com/reference/kotlin/androidx/room3/Fts5#tokenizerArgs()` |   |

### TOKENIZER_ICU

Cmn Added in [3.0.0](https://developer.android.com/jetpack/androidx/releases/room3#3.0.0)

```
const val TOKENIZER_ICU: String
```

The name of a tokenizer implemented by the ICU library.

Not available in certain Android builds (e.g. vendor).

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/room3/Fts4#tokenizer()` |   |
| `https://developer.android.com/reference/kotlin/androidx/room3/Fts4#tokenizerArgs()` |   |
| `https://developer.android.com/reference/kotlin/androidx/room3/Fts5#tokenizer()` |   |
| `https://developer.android.com/reference/kotlin/androidx/room3/Fts5#tokenizerArgs()` |   |

### TOKENIZER_PORTER

Cmn Added in [3.0.0](https://developer.android.com/jetpack/androidx/releases/room3#3.0.0)

```
const val TOKENIZER_PORTER: String
```

The name of the tokenizer based on the Porter Stemming Algorithm.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/room3/Fts4#tokenizer()` |   |
| `https://developer.android.com/reference/kotlin/androidx/room3/Fts4#tokenizerArgs()` |   |
| `https://developer.android.com/reference/kotlin/androidx/room3/Fts5#tokenizer()` |   |
| `https://developer.android.com/reference/kotlin/androidx/room3/Fts5#tokenizerArgs()` |   |

### TOKENIZER_SIMPLE

Cmn Added in [3.0.0](https://developer.android.com/jetpack/androidx/releases/room3#3.0.0)

```
const val TOKENIZER_SIMPLE: String
```

The name of the default tokenizer used on FTS3 and FTS4 tables.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/room3/Fts4#tokenizer()` |   |
| `https://developer.android.com/reference/kotlin/androidx/room3/Fts4#tokenizerArgs()` |   |

### TOKENIZER_TRIGRAM

Cmn Added in [3.0.0](https://developer.android.com/jetpack/androidx/releases/room3#3.0.0)

```
const val TOKENIZER_TRIGRAM: String
```

The name of the tokenizer that implements a trigram tokenizer that indexes every three-character sequence in the input text.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/room3/Fts5#tokenizer()` |   |
| `https://developer.android.com/reference/kotlin/androidx/room3/Fts5#tokenizerArgs()` |   |

### TOKENIZER_UNICODE61

Cmn Added in [3.0.0](https://developer.android.com/jetpack/androidx/releases/room3#3.0.0)

```
const val TOKENIZER_UNICODE61: String
```

The name of the tokenizer that classifies all unicode characters as either "separator" or "token" characters according to rules in Unicode Version 6.1.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/room3/Fts4#tokenizer()` |   |
| `https://developer.android.com/reference/kotlin/androidx/room3/Fts4#tokenizerArgs()` |   |
| `https://developer.android.com/reference/kotlin/androidx/room3/Fts5#tokenizer()` |   |
| `https://developer.android.com/reference/kotlin/androidx/room3/Fts5#tokenizerArgs()` |   |