RE: Migrating junit tests from Solr 4.5.1 to Solr 5.2.1

2015-07-27 Thread Rich Hume
Thanks Erick!

In addition to looking at TestCoreDiscovery.java, I also found 
TestSolrProperties.java to be useful.  My problems basically boiled down to my 
having not correctly set the cores up for discovery.  I had moved away from the 
old style solr.xml, but had not done it correctly.

Thanks again,
Rich

-Original Message-
From: Erick Erickson [mailto:erickerick...@gmail.com] 
Sent: Wednesday, July 22, 2015 10:51 AM
To: solr-user@lucene.apache.org
Subject: Re: Migrating junit tests from Solr 4.5.1 to Solr 5.2.1

Take a look at TestCoreDiscovery.java, it creates a bunch of cores and
tests loading them. You probably want to ignore anything about
transient cores in that file.

But... how are you creating cores? 5.x doesn't support defining
multiple cores in solr.xml, so that's the first thing you need to be
aware of.

Otherwise, exactly what are you seeing?

Best,
Erick

On Tue, Jul 21, 2015 at 8:49 AM, Rich Hume  wrote:
> I am migrating from Solr 4.5.1 to Solr 5.2.1 on a Windows platform.  I am 
> using multi-core, but not Solr cloud.  I am having issues with my suite of 
> junit tests.  My tests currently use code I found in SOLR-4502.
>
> I was wondering whether anyone could point me at best-practice examples of 
> multi-core junit tests for Solr 5.2.1?
>
> Thanks
> Rich
>


Migrating junit tests from Solr 4.5.1 to Solr 5.2.1

2015-07-21 Thread Rich Hume
I am migrating from Solr 4.5.1 to Solr 5.2.1 on a Windows platform.  I am using 
multi-core, but not Solr cloud.  I am having issues with my suite of junit 
tests.  My tests currently use code I found in SOLR-4502.

I was wondering whether anyone could point me at best-practice examples of 
multi-core junit tests for Solr 5.2.1?

Thanks
Rich



Problem with distributed search using grouping and highlighting

2015-06-08 Thread Rich Hume
I am currently using Solr 4.5.1.  In the hopes of seeing better query 
performance, I have sharded an index and I am trying to use the shards 
parameter along with grouping and highlighting.  I am not currently using Solr 
cloud.

I got past an earlier problem by adding a second sort parameter (as described 
in JIRA Solr-5046).  Unfortunately, I have found nothing related to my latest 
index out of bounds problem.  I do not believe that JIRA Solr-5709 is related 
since my unique keys are in fact unique across the shards.

If anyone can point out something that I am doing wrong it would be greatly 
appreciated.

Thanks,
Rich

I am seeing the following error, the parameters I am passing are below the 
stack trace.

null:java.lang.ArrayIndexOutOfBoundsException: 35
 at 
org.apache.solr.handler.component.HighlightComponent.finishStage(HighlightComponent.java:185)
 at 
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:317)
 at 
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
 at org.apache.solr.core.SolrCore.execute(SolrCore.java:1859)
 at 
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:703)
 at 
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:406)
 at 
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:195)
 at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)


Here are the parameters I am passing:

group=true&group.offset=0&group.limit=10&group.field=DeDup
&group.query=DocumentTypes:34&group.query=DocumentTypes:35&group.query=DocumentTypes:32
&shards=localhost:8983/solr/IX1,localhost:8983/solr/IX2
&fq=+DocumentTypes:(34 35 32)
&defType=edismax&qf=csTitle^100 csContent
&q="any matching search string"
&start=0&rows=10
&fl=PageNumber,FilePath,DocumentGUID,ResultDisplayContent,DocumentTypes
&sort=score desc,DocumentGUID asc
&hl=on
&hl.fl=csTitle,csContent




Errors after upgrade from Solr 4.5.1 to Solr 4.10.4

2015-04-29 Thread Rich Hume
After we upgraded Solr from 4.5.1 to 4.10.4, we started seeing the following 
UnsupportedOperationException logged repeatedly.  We do not have highlighting 
configured to useFastVectorHighlighter.  The logged stack trace has given me 
little to go on.  I was hoping this is a problem others have seen (but my 
searching has yielded nothing).

Thanks
Rich

null:java.lang.UnsupportedOperationException
at 
org.apache.lucene.queryparser.surround.query.RewriteQuery.clone(RewriteQuery.java:80)
at 
org.apache.lucene.queryparser.surround.query.RewriteQuery.clone(RewriteQuery.java:23)
at 
org.apache.lucene.search.vectorhighlight.FieldQuery.applyParentBoost(FieldQuery.java:156)
at 
org.apache.lucene.search.vectorhighlight.FieldQuery.flatten(FieldQuery.java:96)
at 
org.apache.lucene.search.vectorhighlight.FieldQuery.flatten(FieldQuery.java:96)
at 
org.apache.lucene.search.vectorhighlight.FieldQuery.(FieldQuery.java:67)
at 
org.apache.lucene.search.vectorhighlight.FastVectorHighlighter.getFieldQuery(FastVectorHighlighter.java:98)
at 
org.apache.solr.highlight.DefaultSolrHighlighter.doHighlighting(DefaultSolrHighlighter.java:401)
at 
org.apache.solr.handler.component.HighlightComponent.process(HighlightComponent.java:144)
at 
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:218)
at 
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1976)
at 
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:777)
at 
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:418)
at 
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:207)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
at 
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at 
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
at 
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at 
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)
at 
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
at 
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at 
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at 
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
at 
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:368)
at 
org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
at 
org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)
at 
org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:953)
at 
org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1014)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
at 
org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72)
at 
org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264)
at 
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
at 
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
at java.lang.Thread.run(Unknown Source)