lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kannan Chellappa (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-4660) FastVectorHighlighter: String Out of bounds exception when phrase query is used (pf is used in edismax)
Date Mon, 01 Apr 2013 15:01:24 GMT

    [ https://issues.apache.org/jira/browse/SOLR-4660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13618812#comment-13618812
] 

Kannan Chellappa commented on SOLR-4660:
----------------------------------------

Brief Troubleshooting (in 4.1) indicates the following

 The slop specified ps matches a fragment of the document that contains all the three words
in the query and the number of characters is about 212 and the requested frag size is 200.
 When the newMargin and the modifiedStartOffset gets computed in BaseFagListBuilder (in createFieldFragList)
it shortens the fragment instead of expanding it (seem like it assumes that all matching phrases
would fit within the fragsize.
                
> FastVectorHighlighter: String Out of bounds exception when phrase query 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 post.jar a2.xml)
>  Run the following query
>          http://localhost:8983/solr/select/?q=%2B_query_%3A%22%7B%21type%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=title%20id%2Cscore&hl.fl=includes%20%20title&hl=true&hl.useFastVectorHighlighter=true
> 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.createFragments(BaseFragmentsBuilder.java:144)
at org.apache.lucene.search.vectorhighlight.FastVectorHighlighter.getBestFragments(FastVectorHighlighter.java:186)
at org.apache.solr.highlight.DefaultSolrHighlighter.doHighlightingByFastVectorHighlighter(DefaultSolrHighlighter.java:556)
at org.apache.solr.highlight.DefaultSolrHighlighter.doHighlighting(DefaultSolrHighlighter.java:389)
at org.apache.solr.handler.component.HighlightComponent.process(HighlightComponent.java:139)
at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:208)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135) at
org.apache.solr.core.SolrCore.execute(SolrCore.java:1797) at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:637)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:343) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:141)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:560) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)
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:365)
> Note -- removing pf or increasing ps or setting useFastVectorHighlighter=false will return
the highlighted result.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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


Mime
View raw message