|
|
|
@ -163,16 +163,17 @@ public class ysearch {
|
|
|
|
|
|
|
|
|
|
if ((!block) && (post.get("cat", "href").equals("href"))) {
|
|
|
|
|
|
|
|
|
|
plasmaSearchRankingProfile ranking = sb.getRanking();
|
|
|
|
|
final TreeSet<String>[] query = plasmaSearchQuery.cleanQuery(querystring); // converts also umlaute
|
|
|
|
|
boolean near = (query[0].contains("near")) && (querystring.indexOf("NEAR") >= 0);
|
|
|
|
|
if (near) {
|
|
|
|
|
query[0].remove("near");
|
|
|
|
|
if ((query[0].contains("near")) && (querystring.indexOf("NEAR") >= 0)) {
|
|
|
|
|
query[0].remove("near");
|
|
|
|
|
ranking.coeff_worddistance = plasmaSearchRankingProfile.COEFF_MAX;
|
|
|
|
|
}
|
|
|
|
|
plasmaSearchRankingProfile ranking = sb.getRanking();
|
|
|
|
|
if (near) {
|
|
|
|
|
ranking.coeff_worddistance = plasmaSearchRankingProfile.COEFF_MAX;
|
|
|
|
|
if ((query[0].contains("recent")) && (querystring.indexOf("RECENT") >= 0)) {
|
|
|
|
|
query[0].remove("recent");
|
|
|
|
|
ranking.coeff_date = plasmaSearchRankingProfile.COEFF_MAX;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// filter out stopwords
|
|
|
|
|
final TreeSet<String> filtered = kelondroMSetTools.joinConstructive(query[0], plasmaSwitchboard.stopwords);
|
|
|
|
|
if (filtered.size() > 0) {
|
|
|
|
|