You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by ko...@apache.org on 2009/04/23 03:31:50 UTC

svn commit: r767754 - in /lucene/solr/trunk: CHANGES.txt src/java/org/apache/solr/handler/component/QueryElevationComponent.java

Author: koji
Date: Thu Apr 23 01:31:49 2009
New Revision: 767754

URL: http://svn.apache.org/viewvc?rev=767754&view=rev
Log:
SOLR-1125: Use query analyzer rather than index analyzer for queryFieldType in QueryElevationComponent

Modified:
    lucene/solr/trunk/CHANGES.txt
    lucene/solr/trunk/src/java/org/apache/solr/handler/component/QueryElevationComponent.java

Modified: lucene/solr/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/CHANGES.txt?rev=767754&r1=767753&r2=767754&view=diff
==============================================================================
--- lucene/solr/trunk/CHANGES.txt (original)
+++ lucene/solr/trunk/CHANGES.txt Thu Apr 23 01:31:49 2009
@@ -331,6 +331,9 @@
     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
 ----------------------

Modified: lucene/solr/trunk/src/java/org/apache/solr/handler/component/QueryElevationComponent.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/handler/component/QueryElevationComponent.java?rev=767754&r1=767753&r2=767754&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/handler/component/QueryElevationComponent.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/handler/component/QueryElevationComponent.java Thu Apr 23 01:31:49 2009
@@ -151,7 +151,7 @@
         throw new SolrException( SolrException.ErrorCode.SERVER_ERROR,
             "Unknown FieldType: '"+a+"' used in QueryElevationComponent" );
       }
-      analyzer = ft.getAnalyzer();
+      analyzer = ft.getQueryAnalyzer();
     }
 
     SchemaField sf = core.getSchema().getUniqueKeyField();