# AppSearchSchema.LongPropertyConfig

Artifact: [androidx.appsearch:appsearch](https://developer.android.com/jetpack/androidx/releases/appsearch) [View Source](https://cs.android.com/search?q=file:androidx/appsearch/app/AppSearchSchema.java+class:androidx.appsearch.app.AppSearchSchema.LongPropertyConfig) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appsearch#1.1.0)

*** ** * ** ***


```
public final class AppSearchSchema.LongPropertyConfig extends AppSearchSchema.PropertyConfig
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.appsearch.app.AppSearchSchema.PropertyConfig](https://developer.android.com/reference/androidx/appsearch/app/AppSearchSchema.PropertyConfig) ||
|   | ↳ | [androidx.appsearch.app.AppSearchSchema.LongPropertyConfig](https://developer.android.com/reference/androidx/appsearch/app/AppSearchSchema.LongPropertyConfig) |

*** ** * ** ***

Configuration for a property containing a 64-bit integer.

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/appsearch/app/AppSearchSchema.LongPropertyConfig.Builder` Builder for `https://developer.android.com/reference/androidx/appsearch/app/AppSearchSchema.LongPropertyConfig`. |

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/appsearch/app/AppSearchSchema.LongPropertyConfig#INDEXING_TYPE_NONE() = 0` Content in this property will not be indexed. |
| `static final int` | `@https://developer.android.com/reference/androidx/annotation/RequiresFeature(enforcement = "androidx.appsearch.app.Features#isFeatureSupported", name = https://developer.android.com/reference/androidx/appsearch/app/Features.NUMERIC_SEARCH) https://developer.android.com/reference/androidx/appsearch/app/AppSearchSchema.LongPropertyConfig#INDEXING_TYPE_RANGE() = 1` Content in this property will be indexed and can be fetched via numeric search range query. |

| ### Public methods |
|---|---|
| `int` | `https://developer.android.com/reference/androidx/appsearch/app/AppSearchSchema.LongPropertyConfig#getIndexingType()()` Returns how the property is indexed. |
| `boolean` | `@https://developer.android.com/reference/androidx/appsearch/app/ExperimentalAppSearchApi https://developer.android.com/reference/androidx/appsearch/app/AppSearchSchema.LongPropertyConfig#isScoringEnabled()()` Returns if the property is enabled for scoring. |

| ### Inherited Constants |
|---|
| From [androidx.appsearch.app.AppSearchSchema.PropertyConfig](https://developer.android.com/reference/androidx/appsearch/app/AppSearchSchema.PropertyConfig) |---|---| | `static final int` | `https://developer.android.com/reference/androidx/appsearch/app/AppSearchSchema.PropertyConfig#CARDINALITY_OPTIONAL() = 2` Zero or one value \[0,1\]. | | `static final int` | `https://developer.android.com/reference/androidx/appsearch/app/AppSearchSchema.PropertyConfig#CARDINALITY_REPEATED() = 1` Any number of items (including zero) \[0...\*\]. | | `static final int` | `https://developer.android.com/reference/androidx/appsearch/app/AppSearchSchema.PropertyConfig#CARDINALITY_REQUIRED() = 3` Exactly one value \[1\]. | |

| ### Inherited methods |
|---|
| From [androidx.appsearch.app.AppSearchSchema.PropertyConfig](https://developer.android.com/reference/androidx/appsearch/app/AppSearchSchema.PropertyConfig) |---|---| | `boolean` | `https://developer.android.com/reference/androidx/appsearch/app/AppSearchSchema.PropertyConfig#equals(java.lang.Object)(@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/Object.html other)` | | `int` | `https://developer.android.com/reference/androidx/appsearch/app/AppSearchSchema.PropertyConfig#getCardinality()()` Returns the cardinality of the property (whether it is optional, required or repeated). | | `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `@https://developer.android.com/reference/androidx/appsearch/app/ExperimentalAppSearchApi https://developer.android.com/reference/androidx/appsearch/app/AppSearchSchema.PropertyConfig#getDescription()()` Returns a natural language description of this property. | | `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/appsearch/app/AppSearchSchema.PropertyConfig#getName()()` Returns the name of this property. | | `int` | `https://developer.android.com/reference/androidx/appsearch/app/AppSearchSchema.PropertyConfig#hashCode()()` | | `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/appsearch/app/AppSearchSchema.PropertyConfig#toString()()` | |

## Constants

### INDEXING_TYPE_NONE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appsearch#1.1.0)

```
public static final int INDEXING_TYPE_NONE = 0
```

Content in this property will not be indexed.

### INDEXING_TYPE_RANGE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appsearch#1.1.0)

```
@RequiresFeature(enforcement = "androidx.appsearch.app.Features#isFeatureSupported", name = Features.NUMERIC_SEARCH)
public static final int INDEXING_TYPE_RANGE = 1
```

Content in this property will be indexed and can be fetched via numeric search range query.

For example, a property with 1024 should match numeric search range query \[0, 2000\].

## Public methods

### getIndexingType

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appsearch#1.1.0)

```
public int getIndexingType()
```

Returns how the property is indexed.

### isScoringEnabled

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appsearch#1.1.0)

```
@ExperimentalAppSearchApi
public boolean isScoringEnabled()
```

Returns if the property is enabled for scoring.