Authored by Gino Zhang

增加suggest的配置项

... ... @@ -26,9 +26,9 @@ public class SuggestionConstants {
public static int SUGGESTION_COUNT_BATCH_LIMIT = Configuration.getInt("suggestion.count.batch.limit", 300);
public static int SUGGESTION_COUNT_BATCH_MAX_THREAD_SIZE = Configuration.getInt("suggestion.count.batch.max.thread.size", 3);
public static int SUGGESTION_COUNT_BATCH_MAX_THREAD_SIZE = Configuration.getInt("suggestion.count.batch.max.thread.size", 1);
public static int SUGGESTION_DISCOVER_BATCH_LIMIT = Configuration.getInt("suggestion.discover.batch.limit", 300);
public static int SUGGESTION_DISCOVER_BATCH_LIMIT = Configuration.getInt("suggestion.discover.batch.limit", 500);
public static int SUGGESTION_DISCOVER_BATCH_MAX_THREAD_SIZE = Configuration.getInt("suggestion.discover.batch.max.thread.size", 3);
... ...
... ... @@ -56,5 +56,9 @@ search.multiMatchQuery.type=BEST_FIELDS
#suggestion
suggestion.count.batch.limit=300
suggestion.count.batch.max.thread.size=3
suggestion.count.batch.max.thread.size=1
suggestion.discover.batch.limit=500
suggestion.discover.batch.max.thread.size=300
suggestion.count.agg.size=10000
suggestion.count.agg.mindoc=5
... ...
... ... @@ -58,4 +58,8 @@ search.multiMatchQuery.type=BEST_FIELDS
#suggestion
suggestion.count.batch.limit=${suggestion.count.batch.limit}
suggestion.count.batch.max.thread.size=${suggestion.count.batch.max.thread.size}
\ No newline at end of file
suggestion.count.batch.max.thread.size=${suggestion.count.batch.max.thread.size}
suggestion.discover.batch.limit=${suggestion.discover.batch.limit}
suggestion.discover.batch.max.thread.size=${suggestion.discover.batch.max.thread.size}
suggestion.count.agg.size=${suggestion.count.agg.size}
suggestion.count.agg.mindoc=${suggestion.count.agg.mindoc}
\ No newline at end of file
... ...