lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-4656) Fix EmptyTokenizer
Date Thu, 03 Jan 2013 15:28:12 GMT

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

Uwe Schindler commented on LUCENE-4656:
---------------------------------------

bq. I needed to add a quick hack to add a TermToBytesRefAttribute when the tokenstream doesn't
have one so that TermsHashPerField doesn't complain that it can't find this attribute when
indexing.

But this is a bug. If you use the non-test EmptyTokenStream from the analysis-common package
and add it to a document it will fail, right? So we should fix IndexWriter to handle that
case?
                
> Fix EmptyTokenizer
> ------------------
>
>                 Key: LUCENE-4656
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4656
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/analysis
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Trivial
>         Attachments: LUCENE-4656.patch, LUCENE-4656.patch
>
>
> TestRandomChains can fail because EmptyTokenizer doesn't have a CharTermAttribute and
doesn't compute the end offset (if the offset attribute was added by a filter).

--
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