@Retention(value=RUNTIME) @Target(value=FIELD) @Documented public @interface SASI
| Data type | Index Mode | Analyzer Class | Possible option values |
|---|---|---|---|
| Text or Ascii | PREFIX or CONTAINS | NoOpAnalyzer |
|
| Text or Ascii | PREFIX or CONTAINS | NonTokenizingAnalyzer |
|
| Text or Ascii | PREFIX or CONTAINS | StandardAnalyzer |
|
| Non Text | PREFIX OR SPARSE | NoOpAnalyzer |
|
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
analyzed
Indicates whether the data should be analyzed or not.
|
SASI.Analyzer |
analyzerClass
Defines the analyzer class.
|
boolean |
enableStemming
Enable stemming of input text.
|
SASI.IndexMode |
indexMode
SASI index mode.
|
String |
locale
Defines the locale for tokenization.
|
int |
maxCompactionFlushMemoryInMb
Maximum size of SASI data to keep in memory during compaction process.
|
String |
name
Optional.
|
SASI.Normalization |
normalization
Defines the normalization to be applied to the input.
|
boolean |
skipStopWords
Enable stemming of input text.
|
public abstract String name
@Table
public class User {
...
@SASI(name = "country_code_index")
@Column
private String countryCode;
...
}
If the index name was not set above, it would default to public abstract SASI.IndexMode indexMode
public abstract boolean analyzed
public abstract SASI.Analyzer analyzerClass
public abstract int maxCompactionFlushMemoryInMb
public abstract SASI.Normalization normalization
public abstract String locale
Copyright © 2012-2021. All Rights Reserved.