1
0
mirror of https://github.com/yacy/yacy_search_server.git synced 2025-07-20 08:54:37 -04:00

*) even better handling of searchwords in snippets, words can consist of letters and numbers now

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2732 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
low012
2006-10-09 21:08:13 +00:00
parent b062847797
commit 2cfd4633ac

@ -146,12 +146,12 @@ public class plasmaSnippetCache {
prefix = "";
postfix = "";
while((w[j].matches("\\A\\PL.+"))) {
while((w[j].matches("\\A[^\\p{L}\\p{N}].+"))) {
prefix = w[j].substring(0,1) + prefix;
w[j] = w[j].substring(1);
}
while((w[j].matches(".+\\PL\\Z"))) {
while((w[j].matches(".+[^\\p{L}\\p{N}]\\Z"))) {
len = w[j].length();
postfix = w[j].substring(len-1,len) + postfix;
w[j] = w[j].substring(0,len-1);