You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2011/03/31 14:36:05 UTC

[jira] [Commented] (MAHOUT-644) LuceneIterable does not throw exception if field does not have term vectors

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

Sean Owen commented on MAHOUT-644:
----------------------------------

I'd like to take this a step further actually. LuceneIterable isn't quite right now -- hasNext() has a side effect of reading new data when it needs to be idempotent. I wrote a TODO for it to be looked at, but why don't I just do it myself and add a test.

> LuceneIterable does not throw exception if field does not have term vectors
> ---------------------------------------------------------------------------
>
>                 Key: MAHOUT-644
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-644
>             Project: Mahout
>          Issue Type: Improvement
>          Components: Utils
>    Affects Versions: 0.4
>            Reporter: Frank Scholten
>            Assignee: Sean Owen
>            Priority: Minor
>             Fix For: 0.5
>
>         Attachments: MAHOUT-644.patch
>
>
> LuceneIterable does not throw an exception when it tries to create Mahout vectors from a field without term vectors. It should throw an IllegalStateException and not silently continue and return null vectors.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira