lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <>
Subject [jira] Commented: (LUCENE-1714) WriteLineDocTask incorrectly normalizes fields
Date Tue, 23 Jun 2009 10:28:07 GMT


Michael McCandless commented on LUCENE-1714:

Looks good!  Shai, can we pre-compile the regex up front (java.util.regex.Matcher) so we don't
have to compile it three times on every written line?

> WriteLineDocTask incorrectly normalizes fields
> ----------------------------------------------
>                 Key: LUCENE-1714
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: contrib/benchmark
>            Reporter: Shai Erera
>            Assignee: Michael McCandless
>             Fix For: 2.9
>         Attachments: LUCENE-1714.patch
> WriteLineDocTask normalizes the body, title and date fields by replacing any "\t" with
a space. However, if any one of them contains newlines, LineDocMaker will fail, since the
first line read will include some of the text, however the second line, which it now expects
to be a new document, will include other parts of the text.
> I don't know how we didn't hit it so far. Maybe the wikipedia text doesn't have such
lines, however when I ran over the TREC collection I hit a lot of those.
> I will attach a patch shortly.

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

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

View raw message