Permalink
Browse files

Enable results suggestions (Did you Mean) even when RWI is not enabled.

RWI is no more necessary for suggestions processing since commit
c40ba51.
Revealed by a question about spell check from ouahpiti on YaCy forum
(http://forum.yacy-websuche.de/viewtopic.php?f=23&t=6084 ).
  • Loading branch information...
luccioman committed Feb 6, 2018
1 parent 9412881 commit c71b5452350a5f69686d1d38c70d4b686ca6ee14
Showing with 1 addition and 1 deletion.
  1. +1 −1 htroot/yacysearch.java
@@ -794,7 +794,7 @@ public static serverObjects respond(
final int meanMax = (post != null) ? post.getInt("meanCount", 0) : 0;
prop.put("meanCount", meanMax);
if ( meanMax > 0 && !json && !rss && sb.index.connectedRWI()) {
if ( meanMax > 0 && !json && !rss) {
final DidYouMean didYouMean = new DidYouMean(indexSegment, querystring);
final Iterator<StringBuilder> meanIt = didYouMean.getSuggestions(100, 5, sb.index.fulltext().collectionSize() < 2000000).iterator();
int meanCount = 0;

0 comments on commit c71b545

Please sign in to comment.