[ 
https://issues.apache.org/jira/browse/MAHOUT-644?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sean Owen updated MAHOUT-644:
-----------------------------

    Attachment: MAHOUT-644.patch

Here's a patch that reorganizes the Iterator/Iterable a bit and fixes the 
hasNext() issue.

I wonder if it would be more desirable to have the Iterator create the 
IndexReader, so that it can close() it at the right time, but that's another 
issue...

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

Reply via email to