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

Koji Sekiguchi updated LUCENE-2949:
-----------------------------------

    Attachment: LUCENE-2949.patch

A first draft patch. All FVH tests pass.

As it is my first experience of TermVectorMapper, feedback would be 
appreciated. For example, I left setExpectations() empty, but I'm not sure it 
is correct.

> FastVectorHighlighter FieldTermStack could likely benefit from using 
> TermVectorMapper
> -------------------------------------------------------------------------------------
>
>                 Key: LUCENE-2949
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2949
>             Project: Lucene - Java
>          Issue Type: Improvement
>    Affects Versions: 3.0.3, 4.0
>            Reporter: Grant Ingersoll
>            Assignee: Koji Sekiguchi
>            Priority: Minor
>              Labels: FastVectorHighlighter, Highlighter
>             Fix For: 3.2, 4.0
>
>         Attachments: LUCENE-2949.patch
>
>
> Based on my reading of the FieldTermStack constructor that loads the vector 
> from disk, we could probably save a bunch of time and memory by using the 
> TermVectorMapper callback mechanism instead of materializing the full array 
> of terms into memory and then throwing most of them out.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to