Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 42CD0FCA8 for ; Fri, 5 Apr 2013 22:33:19 +0000 (UTC) Received: (qmail 11204 invoked by uid 500); 5 Apr 2013 22:33:17 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 11128 invoked by uid 500); 5 Apr 2013 22:33:17 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 11028 invoked by uid 99); 5 Apr 2013 22:33:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Apr 2013 22:33:17 +0000 Date: Fri, 5 Apr 2013 22:33:17 +0000 (UTC) From: "Kannan Chellappa (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SOLR-4660) FastVectorHighlighter: String Out of bounds exception when phrase query with a fairly big slop is used (pf is used in edismax) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-4660?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D13624= 136#comment-13624136 ]=20 Kannan Chellappa commented on SOLR-4660: ---------------------------------------- Yes. Tested this after applying the patch and it works. Thanks =20 > FastVectorHighlighter: String Out of bounds exception when phrase query w= ith a fairly big slop is used (pf is used in edismax) > -------------------------------------------------------------------------= ----------------------------------------------------- > > Key: SOLR-4660 > URL: https://issues.apache.org/jira/browse/SOLR-4660 > Project: Solr > Issue Type: Bug > Components: highlighter > Affects Versions: 4.1, 4.2 > Environment: Windows 7 > Reporter: Kannan Chellappa > Attachments: a2.xml > > > On a clean install of 4.2, do the following to reproduce the issue > Start Solr > Post the attached document to solr. (from example docs run java -jar pos= t.jar a2.xml) > Run the following query > http://localhost:8983/solr/select/?q=3D%2B_query_%3A%22%7B%21typ= e%3Dedismax+qf%3D%27includes%5E1.0+title%5E10.0%27+pf%3D%27includes%5E2%27+= ps%3D28+v%3D%27thai%20vietnamese%20documentation%27+mm%3D100%25%7D%22&fl=3D= title%20id%2Cscore&hl.fl=3Dincludes%20%20title&hl=3Dtrue&hl.useFastVectorHi= ghlighter=3Dtrue > You will get the following error > java.lang.StringIndexOutOfBoundsException: String index out of range: -52= at java.lang.String.substring(Unknown Source) at org.apache.lucene.search.= vectorhighlight.BaseFragmentsBuilder.makeFragment(BaseFragmentsBuilder.java= :178) at org.apache.lucene.search.vectorhighlight.BaseFragmentsBuilder.crea= teFragments(BaseFragmentsBuilder.java:144) at org.apache.lucene.search.vect= orhighlight.FastVectorHighlighter.getBestFragments(FastVectorHighlighter.ja= va:186) at org.apache.solr.highlight.DefaultSolrHighlighter.doHighlightingB= yFastVectorHighlighter(DefaultSolrHighlighter.java:556) at org.apache.solr.= highlight.DefaultSolrHighlighter.doHighlighting(DefaultSolrHighlighter.java= :389) at org.apache.solr.handler.component.HighlightComponent.process(Highl= ightComponent.java:139) at org.apache.solr.handler.component.SearchHandler.= handleRequestBody(SearchHandler.java:208) at org.apache.solr.handler.Reques= tHandlerBase.handleRequest(RequestHandlerBase.java:135) at org.apache.solr.= core.SolrCore.execute(SolrCore.java:1797) at org.apache.solr.servlet.SolrDi= spatchFilter.execute(SolrDispatchFilter.java:637) at org.apache.solr.servle= t.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:343) at org.apache.so= lr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:141) at org.= eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja= va:1307) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandle= r.java:453) at org.eclipse.jetty.server.handler.ScopedHandler.handle(Scoped= Handler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(Secu= rityHandler.java:560) at org.eclipse.jetty.server.session.SessionHandler.do= Handle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.Context= Handler.doHandle(ContextHandler.java:1072) at org.eclipse.jetty.servlet.Ser= vletHandler.doScope(ServletHandler.java:382) at org.eclipse.jetty.server.se= ssion.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.= server.handler.ContextHandler.doScope(ContextHandler.java:1006) at org.ecli= pse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at or= g.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandl= erCollection.java:255) at org.eclipse.jetty.server.handler.HandlerCollectio= n.handle(HandlerCollection.java:154) at org.eclipse.jetty.server.handler.Ha= ndlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Se= rver.handle(Server.java:365) > Note -- removing pf or increasing ps or setting useFastVectorHighlighter= =3Dfalse will return the highlighted result. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org