Skip to content

Commit 230cd7a

Browse files
committed
Merged master
1 parent 99e75df commit 230cd7a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

core/src/main/java/io/snabble/sdk/SnabbleSdk.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,15 @@ public static class Config {
123123
*/
124124
public boolean productDbDownloadIfMissing = true;
125125

126+
/**
127+
* If set to true, creates an full text index to support searching in the product database
128+
* using findByName or searchByName.
129+
*
130+
* Note that this increases setup time of the SDK and it is highly recommended to use
131+
* the non-blocking initialization function.
132+
*/
133+
public boolean generateSearchIndex = false;
134+
126135
/**
127136
* Optional SSLSocketFactory that gets used for HTTP requests.
128137
*
@@ -384,6 +393,7 @@ private void setupSdk(Config config, final SetupCompletionListener setupCompleti
384393
dbConfig.bundledSchemaVersionMajor = config.productDbBundledSchemaVersionMajor;
385394
dbConfig.bundledSchemaVersionMinor = config.productDbBundledSchemaVersionMinor;
386395
dbConfig.autoUpdateIfMissing = config.productDbDownloadIfMissing;
396+
dbConfig.generateSearchIndex = config.generateSearchIndex;
387397

388398
productDatabase = new ProductDatabase(this,
389399
config.productDbName,

0 commit comments

Comments
 (0)