[jira] [Commented] (SOLR-2212) NoMergePolicy class does not load
[ https://issues.apache.org/jira/browse/SOLR-2212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15607545#comment-15607545 ] ASF subversion and git services commented on SOLR-2212: --- Commit 3628b0a0c859b59f72324139bcf163f323afd6e3 in lucene-solr's branch refs/heads/branch_6x from [~shalinmangar] [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=3628b0a ] SOLR-2212: Add a factory class corresponding to Lucene's NoMergePolicy (cherry picked from commit 768c7e2) > NoMergePolicy class does not load > - > > Key: SOLR-2212 > URL: https://issues.apache.org/jira/browse/SOLR-2212 > Project: Solr > Issue Type: Bug > Components: multicore >Affects Versions: 3.1, 4.0-ALPHA >Reporter: Lance Norskog > Attachments: SOLR-2212.patch > > > Solr cannot use the Lucene NoMergePolicy class. It will not instantiate > correctly when loading the core. > Other MergePolicy classes work, including the BalancedSegmentMergePolicy. > This is in trunk and 3.x. -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-2212) NoMergePolicy class does not load
[ https://issues.apache.org/jira/browse/SOLR-2212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15607541#comment-15607541 ] ASF subversion and git services commented on SOLR-2212: --- Commit 768c7e2648557d10f231f49a7c76eb040cbbcb0e in lucene-solr's branch refs/heads/master from [~shalinmangar] [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=768c7e2 ] SOLR-2212: Add a factory class corresponding to Lucene's NoMergePolicy > NoMergePolicy class does not load > - > > Key: SOLR-2212 > URL: https://issues.apache.org/jira/browse/SOLR-2212 > Project: Solr > Issue Type: Bug > Components: multicore >Affects Versions: 3.1, 4.0-ALPHA >Reporter: Lance Norskog > Attachments: SOLR-2212.patch > > > Solr cannot use the Lucene NoMergePolicy class. It will not instantiate > correctly when loading the core. > Other MergePolicy classes work, including the BalancedSegmentMergePolicy. > This is in trunk and 3.x. -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-2212) NoMergePolicy class does not load
[ https://issues.apache.org/jira/browse/SOLR-2212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15594525#comment-15594525 ] Cao Manh Dat commented on SOLR-2212: Now, mergePolicy accept a MergePolicyFactory. So I think we can close this issue here and open another ticket like "NoMergePolicyFactory" to add a NoMergePolicyFactory for Solr. > NoMergePolicy class does not load > - > > Key: SOLR-2212 > URL: https://issues.apache.org/jira/browse/SOLR-2212 > Project: Solr > Issue Type: Bug > Components: multicore >Affects Versions: 3.1, 4.0-ALPHA >Reporter: Lance Norskog > > Solr cannot use the Lucene NoMergePolicy class. It will not instantiate > correctly when loading the core. > Other MergePolicy classes work, including the BalancedSegmentMergePolicy. > This is in trunk and 3.x. -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] Commented: (SOLR-2212) NoMergePolicy class does not load
[ https://issues.apache.org/jira/browse/SOLR-2212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12931913#action_12931913 ] Lance Norskog commented on SOLR-2212: - Also, it expects you to tell it whether to use compound files. This signature structure just plain does not work with the solrconfig.xml structure. The fact that the merge policy has to embed whether to use compound files seems like an information leakage anyway. The MergePolicy returns lists of segments, that's it. Adding whether to use compound files is extraneous and in this case causes problems. NoMergePolicy class does not load - Key: SOLR-2212 URL: https://issues.apache.org/jira/browse/SOLR-2212 Project: Solr Issue Type: Bug Components: multicore Affects Versions: 3.1, 4.0 Reporter: Lance Norskog Solr cannot use the Lucene NoMergePolicy class. It will not instantiate correctly when loading the core. Other MergePolicy classes work, including the BalancedSegmentMergePolicy. This is in trunk and 3.x. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] Commented: (SOLR-2212) NoMergePolicy class does not load
[ https://issues.apache.org/jira/browse/SOLR-2212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12930243#action_12930243 ] Hoss Man commented on SOLR-2212: mergePolicy (and most of the SolrPlugin stuff) requires that the class specified support a no-arg constructor. NoMergePolicy has no public constructors at all - it seems to expect you to only ever use one of the Static singletons. NoMergePolicy class does not load - Key: SOLR-2212 URL: https://issues.apache.org/jira/browse/SOLR-2212 Project: Solr Issue Type: Bug Components: multicore Affects Versions: 3.1, 4.0 Reporter: Lance Norskog Solr cannot use the Lucene NoMergePolicy class. It will not instantiate correctly when loading the core. Other MergePolicy classes work, including the BalancedSegmentMergePolicy. This is in trunk and 3.x. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] Commented: (SOLR-2212) NoMergePolicy class does not load
[ https://issues.apache.org/jira/browse/SOLR-2212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12927309#action_12927309 ] Lance Norskog commented on SOLR-2212: - This test is in trunk/solr/example and branch_3x/solr/example. I set the MergePolicy in solrconfig.xml to the NoMergePolicy class with this line: {code} mergePolicy class=org.apache.lucene.index.NoMergePolicy/ {code} When I start solr I get the following stack trace. {code} Nov 1, 2010 10:43:40 PM org.apache.solr.common.SolrException log SEVERE: org.apache.solr.common.SolrException: Error instantiating class: 'org.apache.lucene.index.NoMergePolicy' at org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:432) at org.apache.solr.update.SolrIndexWriter.init(SolrIndexWriter.java:83) at org.apache.solr.update.SolrIndexWriter.init(SolrIndexWriter.java:197) at org.apache.solr.core.SolrCore.initIndex(SolrCore.java:399) at org.apache.solr.core.SolrCore.init(SolrCore.java:550) at org.apache.solr.core.CoreContainer.create(CoreContainer.java:660) at org.apache.solr.core.CoreContainer.load(CoreContainer.java:412) at org.apache.solr.core.CoreContainer.load(CoreContainer.java:294) at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:243) at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:86) at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:662) at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.jetty.Server.doStart(Server.java:224) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.mortbay.start.Main.invokeMain(Main.java:194) at org.mortbay.start.Main.start(Main.java:534) at org.mortbay.start.Main.start(Main.java:441) at org.mortbay.start.Main.main(Main.java:119) Caused by: java.lang.InstantiationException: org.apache.lucene.index.NoMergePolicy at java.lang.Class.newInstance0(Class.java:340) at java.lang.Class.newInstance(Class.java:308) at org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:429) ... 34 more {code} NoMergePolicy class does not load - Key: SOLR-2212 URL: https://issues.apache.org/jira/browse/SOLR-2212 Project: Solr Issue Type: Bug Components: multicore Affects Versions: 3.1, 4.0 Reporter: Lance Norskog Solr cannot use the Lucene NoMergePolicy class. It will not instantiate correctly when loading the core. Other MergePolicy classes work, including the BalancedSegmentMergePolicy. This is in trunk and 3.x. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org