From e0fb06b4369abacf344455b878d77af325dea776 Mon Sep 17 00:00:00 2001 From: Koji Sekiguchi Date: Thu, 23 Apr 2009 01:31:49 +0000 Subject: [PATCH] SOLR-1125: Use query analyzer rather than index analyzer for queryFieldType in QueryElevationComponent git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@767754 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 3 +++ .../apache/solr/handler/component/QueryElevationComponent.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index 0f15312270a..c1bb9fd9c41 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -331,6 +331,9 @@ Bug Fixes incorrectly treated as relative paths. (hossman) 36. SOLR-1104: Fix some rounding errors in LukeRequestHandler's histogram (hossman) + +37. SOLR-1125: Use query analyzer rather than index analyzer for queryFieldType in QueryElevationComponent + (koji) Other Changes ---------------------- diff --git a/src/java/org/apache/solr/handler/component/QueryElevationComponent.java b/src/java/org/apache/solr/handler/component/QueryElevationComponent.java index 8a1a32aefc4..e2df6f515ff 100644 --- a/src/java/org/apache/solr/handler/component/QueryElevationComponent.java +++ b/src/java/org/apache/solr/handler/component/QueryElevationComponent.java @@ -151,7 +151,7 @@ public class QueryElevationComponent extends SearchComponent implements SolrCore throw new SolrException( SolrException.ErrorCode.SERVER_ERROR, "Unknown FieldType: '"+a+"' used in QueryElevationComponent" ); } - analyzer = ft.getAnalyzer(); + analyzer = ft.getQueryAnalyzer(); } SchemaField sf = core.getSchema().getUniqueKeyField();