[
https://issues.apache.org/jira/browse/SOLR-1520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13170607#comment-13170607
]
Hoss Man commented on SOLR-1520:
--------------------------------
Grant: i had to revert r1214937 as it was breaking several tests. example...
{noformat}
java.lang.RuntimeException: org.apache.solr.common.SolrException
at org.apache.solr.util.TestHarness.<init>(TestHarness.java:152)
at org.apache.solr.util.TestHarness.<init>(TestHarness.java:135)
at org.apache.solr.util.TestHarness.<init>(TestHarness.java:125)
at org.apache.solr.SolrTestCaseJ4.initCore(SolrTestCaseJ4.java:245)
at org.apache.solr.SolrTestCaseJ4.initCore(SolrTestCaseJ4.java:103)
at org.apache.solr.SolrTestCaseJ4.initCore(SolrTestCaseJ4.java:92)
at
org.apache.solr.MinimalSchemaTest.beforeClass(MinimalSchemaTest.java:40)
Caused by: org.apache.solr.common.SolrException
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:619)
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:504)
at
org.apache.solr.util.TestHarness$Initializer.initialize(TestHarness.java:216)
at org.apache.solr.util.TestHarness.<init>(TestHarness.java:140)
Caused by: org.apache.solr.common.SolrException: QueryElevationComponent
requires the schema to have a uniqueKeyField.
at
org.apache.solr.handler.component.QueryElevationComponent.inform(QueryElevationComponent.java:161)
at
org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:542)
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:614)
{noformat}
As i mentioned in email...
{noformat}
Grant: at quick skim suggests that your change to
solr/core/src/test-files/solr/conf/solrconfig.xml in r1214937 broke
several tests that use that config w/o a uniqueKey field.
At first glance, it's not even clear why you added that to the (heavily
overused) solrconfig.xml anyway, since there is already a
solrconfig-elevate.xml that is also used already. (if the problem is
wanting to use different based types in diff test methods, you could just
instantiate multiple instances of QueryElevationComponent in
solrconfig-elevate.xml and refer to them by name.
{noformat}
> QueryElevationComponent does not work when unique key is of type 'sint'
> -----------------------------------------------------------------------
>
> Key: SOLR-1520
> URL: https://issues.apache.org/jira/browse/SOLR-1520
> Project: Solr
> Issue Type: Bug
> Components: Rules, search
> Affects Versions: 1.3
> Environment: Gentoo Linux, Apache Tomcat 6.0.20, Java 1.6.0_15-b03
> Reporter: Simon Lachinger
> Assignee: Grant Ingersoll
> Fix For: 3.6, 4.0
>
> Attachments: SOLR-1520.patch, SOLR-1520.patch
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> QueryElevationComponent does not work when unique key of the documents is of
> type 'sint'. I did not try any other combination, but when I looking at the
> source in QueryElevationComponent.java I doubt it will work with any other
> type than string.
> I propose to either make it work with other data types or at least to post a
> warning.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]