From 6f1ecbbec09e73acacbfb8b0f498d8a3fa95573e Mon Sep 17 00:00:00 2001 From: kysin8 Date: Tue, 7 Jan 2014 18:23:09 +0800 Subject: [PATCH 1/4] Changes for Chinese handling --- solr-home/ac/conf/schema.xml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/solr-home/ac/conf/schema.xml b/solr-home/ac/conf/schema.xml index 36017d6..4dd6202 100755 --- a/solr-home/ac/conf/schema.xml +++ b/solr-home/ac/conf/schema.xml @@ -25,7 +25,7 @@ - + - + - + - + - + @@ -93,18 +93,18 @@ - - + + - + - - + + - + From fbb15a28c56b7c702a7580da6b399dea4f630810 Mon Sep 17 00:00:00 2001 From: kysin8 Date: Fri, 17 Jan 2014 11:55:09 +0800 Subject: [PATCH 2/4] Change for phrase ordered match Add ShingleFilter to ensure ordered phrase matching --- solr-home/ac/conf/schema.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/solr-home/ac/conf/schema.xml b/solr-home/ac/conf/schema.xml index 4dd6202..7e4c92b 100755 --- a/solr-home/ac/conf/schema.xml +++ b/solr-home/ac/conf/schema.xml @@ -94,15 +94,16 @@ + + - - + From 7c30a70086fe59f4d679788c5e99d0504c3012d5 Mon Sep 17 00:00:00 2001 From: kysin8 Date: Fri, 17 Jan 2014 12:28:32 +0800 Subject: [PATCH 3/4] Change maxShingleSize Change maxShingleSize to 10 --- solr-home/ac/conf/schema.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solr-home/ac/conf/schema.xml b/solr-home/ac/conf/schema.xml index 7e4c92b..154aed4 100755 --- a/solr-home/ac/conf/schema.xml +++ b/solr-home/ac/conf/schema.xml @@ -97,7 +97,7 @@ - + From aa0c26188231938808ee8e59335a32ed8792d0a3 Mon Sep 17 00:00:00 2001 From: kysin8 Date: Mon, 20 Jan 2014 16:09:19 +0800 Subject: [PATCH 4/4] Change ShingleFilter to output unigram If unigram is not output, the last term will not be processed by the ngramFilter. --- solr-home/ac/conf/schema.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/solr-home/ac/conf/schema.xml b/solr-home/ac/conf/schema.xml index 154aed4..b34ee9d 100755 --- a/solr-home/ac/conf/schema.xml +++ b/solr-home/ac/conf/schema.xml @@ -90,20 +90,20 @@ This means that the field "A brown fox" will be matched by query "bro". We use this to get partial matches, but these whould be boosted lower than exact and left-anchored --> - + - + - +