lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kannan Chellappa (JIRA)" <>
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


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:
>             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
at org.apache.solr.highlight.DefaultSolrHighlighter.doHighlightingByFastVectorHighlighter(
at org.apache.solr.highlight.DefaultSolrHighlighter.doHighlighting(
at org.apache.solr.handler.component.HighlightComponent.process(
at org.apache.solr.handler.component.SearchHandler.handleRequestBody(
at org.apache.solr.handler.RequestHandlerBase.handleRequest( at
org.apache.solr.core.SolrCore.execute( at org.apache.solr.servlet.SolrDispatchFilter.execute(
at org.apache.solr.servlet.SolrDispatchFilter.doFilter( at org.apache.solr.servlet.SolrDispatchFilter.doFilter(
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(
at org.eclipse.jetty.servlet.ServletHandler.doHandle( at org.eclipse.jetty.server.handler.ScopedHandler.handle(
at at org.eclipse.jetty.server.session.SessionHandler.doHandle(
at org.eclipse.jetty.server.handler.ContextHandler.doHandle( at org.eclipse.jetty.servlet.ServletHandler.doScope(
at org.eclipse.jetty.server.session.SessionHandler.doScope( at org.eclipse.jetty.server.handler.ContextHandler.doScope(
at org.eclipse.jetty.server.handler.ScopedHandler.handle( at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(
at org.eclipse.jetty.server.handler.HandlerCollection.handle( at
org.eclipse.jetty.server.handler.HandlerWrapper.handle( at org.eclipse.jetty.server.Server.handle(
> 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:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message