|
|
@ -123,10 +123,14 @@ public class RedissonSearch implements RSearch {
|
|
|
|
if (options.isNoFreqs()) {
|
|
|
|
if (options.isNoFreqs()) {
|
|
|
|
args.add("NOFREQS");
|
|
|
|
args.add("NOFREQS");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!options.getStopwords().isEmpty()) {
|
|
|
|
if (options.getStopwords() != null) {
|
|
|
|
args.add("STOPWORDS");
|
|
|
|
args.add("STOPWORDS");
|
|
|
|
args.add(options.getStopwords().size());
|
|
|
|
if (options.getStopwords().isEmpty()) {
|
|
|
|
args.addAll(options.getStopwords());
|
|
|
|
args.add(0);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
args.add(options.getStopwords().size());
|
|
|
|
|
|
|
|
args.addAll(options.getStopwords());
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (options.isSkipInitialScan()) {
|
|
|
|
if (options.isSkipInitialScan()) {
|
|
|
|
args.add("SKIPINITIALSCAN");
|
|
|
|
args.add("SKIPINITIALSCAN");
|
|
|
|