caio.co/de/cerberus

Remove maxDocFreq restriction from moreLikeThis

I'm forgoing these performance-related things in favor of search
policy logic, so that direct cerberus usage doesn't need to be
influenced by production performance tunings.
Id
e1b8b47091bee12f76c77ce3869812d9401780f6
Author
Caio
Commit time
2019-04-30T09:59:56+02:00

Modified src/main/java/co/caio/cerberus/search/SearcherImpl.java

@@ -47,7 +47,6

moreLikeThis = new MoreLikeThis(builder.getIndexReader());
moreLikeThis.setAnalyzer(indexConfiguration.getAnalyzer());
- moreLikeThis.setMaxDocFreq(10000);
}

private static Sort integerSorterWithDefault(String fieldName) {