Rich,
I've run into various problems with group.query and highlighting. You noted
one below (SOLR-5046), and there is also SOLR-6712, which might be related to
what you are experiencing. Still waiting for that patch to be reviewed...
-Original Message-
From: Rich Hume [mailto:rh...@identifix.com]
Sent: Monday, June 08, 2015 2:23 PM
To: solr-user@lucene.apache.org
Subject: Problem with distributed search using grouping and highlighting
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=truegroup.offset=0group.limit=10group.field=DeDup
group.query=DocumentTypes:34group.query=DocumentTypes:35group.query=DocumentTypes:32
shards=localhost:8983/solr/IX1,localhost:8983/solr/IX2
fq=+DocumentTypes:(34 35 32)
defType=edismaxqf=csTitle^100 csContent q=any matching search string
start=0rows=10
fl=PageNumber,FilePath,DocumentGUID,ResultDisplayContent,DocumentTypes
sort=score desc,DocumentGUID asc
hl=on
hl.fl=csTitle,csContent