|
|
@ -97,7 +97,7 @@ public class yacysearch {
|
|
|
|
// get query
|
|
|
|
// get query
|
|
|
|
String originalquerystring = (post == null) ? "" : post.get("query", post.get("search", "")).trim();
|
|
|
|
String originalquerystring = (post == null) ? "" : post.get("query", post.get("search", "")).trim();
|
|
|
|
String querystring = originalquerystring.replace('+', ' ');
|
|
|
|
String querystring = originalquerystring.replace('+', ' ');
|
|
|
|
CrawlProfile.CacheStrategy snippetFetchStrategy = (post != null && post.get("verify", "false").equals("true")) ? CrawlProfile.CacheStrategy.IFFRESH : CrawlProfile.CacheStrategy.parse(post.get("verify", "cacheonly"));
|
|
|
|
CrawlProfile.CacheStrategy snippetFetchStrategy = (post != null && post.get("verify", "false").equals("true")) ? CrawlProfile.CacheStrategy.IFEXIST : CrawlProfile.CacheStrategy.parse(post.get("verify", "cacheonly"));
|
|
|
|
if (snippetFetchStrategy == null) snippetFetchStrategy = CrawlProfile.CacheStrategy.CACHEONLY;
|
|
|
|
if (snippetFetchStrategy == null) snippetFetchStrategy = CrawlProfile.CacheStrategy.CACHEONLY;
|
|
|
|
final serverObjects prop = new serverObjects();
|
|
|
|
final serverObjects prop = new serverObjects();
|
|
|
|
|
|
|
|
|
|
|
|