lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anders Melchiorsen (JIRA)" <>
Subject [jira] Commented: (SOLR-1398) PatternTokenizerFactory ignores offset corrections
Date Wed, 02 Sep 2009 08:20:32 GMT


Anders Melchiorsen commented on SOLR-1398:

Thanks. The patch appears to work, in that analysis.jsp now gives correct results. However,
I am still not able to get highlights in my actual application, due to the below error. There
is the same problem with the WhitespaceTokenizer.

I guess that this is a separate issue, where the highlighter is also not using offset corrections.
Would you mind opening a ticket for that issue, as I am not quite sure what to put into it,
or where to put it.

SEVERE: org.apache.solr.common.SolrException:
Token teknisk exceeds length of provided text sized 803
	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.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
	at org.mortbay.jetty.servlet.ServletHandler.handle(
	at org.mortbay.jetty.servlet.SessionHandler.handle(
	at org.mortbay.jetty.handler.ContextHandler.handle(
	at org.mortbay.jetty.webapp.WebAppContext.handle(
	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(
	at org.mortbay.jetty.handler.HandlerCollection.handle(
	at org.mortbay.jetty.handler.HandlerWrapper.handle(
	at org.mortbay.jetty.Server.handle(
	at org.mortbay.jetty.HttpConnection.handleRequest(
	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(
	at org.mortbay.jetty.HttpParser.parseNext(
	at org.mortbay.jetty.HttpParser.parseAvailable(
	at org.mortbay.jetty.HttpConnection.handle(
	at org.mortbay.thread.BoundedThreadPool$
Caused by: Token teknisk
exceeds length of provided text sized 803
	at org.apache.solr.highlight.DefaultSolrHighlighter.doHighlighting(
	... 23 more

> PatternTokenizerFactory ignores offset corrections
> --------------------------------------------------
>                 Key: SOLR-1398
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>          Components: Analysis
>    Affects Versions: 1.4
>            Reporter: Anders Melchiorsen
>            Assignee: Koji Sekiguchi
>            Priority: Minor
>             Fix For: 1.4
>         Attachments: SOLR-1398.patch
> I have an analyzer with a MappingCharFilterFactory followed by a PatternTokenizerFactory.
This causes wrong offsets, and thus wrong highlights.
> Replacing the tokenizer with WhitespaceTokenizerFactory gives correct offsets, so I expect
the problem to be with PatternTokenizerFactory.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message