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
This commit is contained in:
Koji Sekiguchi 2009-04-23 01:31:49 +00:00
parent 742731754d
commit e0fb06b436
2 changed files with 4 additions and 1 deletions

View File

@ -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
----------------------

View File

@ -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();