you can now search for '*' to get just ALL entries in the search index

as result list. This makes sense if you intend to search just by using
the navigation tools to cut the data set into navigation 'slices'.
pull/1/head
orbiter 12 years ago
parent 7f5526e6ef
commit 54e193a2b8

@ -115,7 +115,7 @@ public class yacysearch {
// get query
final String originalquerystring = (post == null) ? "" : post.get("query", post.get("search", "")).trim();
String querystring = originalquerystring.replace('+', ' ').replace('*', ' ').trim();
String querystring = originalquerystring.replace('+', ' ').trim();
CacheStrategy snippetFetchStrategy = (post == null) ? null : CacheStrategy.parse(post.get("verify", "cacheonly"));
if (authenticated && originalquerystring.length() == 0) sb.index.fulltext().commit();
@ -356,6 +356,9 @@ public class yacysearch {
final RankingProfile ranking = sb.getRanking();
final StringBuilder modifier = new StringBuilder(20);
if ("*".equals(querystring)) {
querystring = Segment.catchallString;
}
if ( querystring.indexOf("/near", 0) >= 0 ) {
querystring = querystring.replace("/near", "");
ranking.allZero(); // switch off all attributes

Loading…
Cancel
Save