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

Matt Weber updated SOLR-1177:
-----------------------------

    Attachment: SOLR-1177.patch

Here is an updated patch that includes Shalin's suggestions:

- replace TermData with TermsResponse.Term
- updates TermsHelper to use the parsing code from TermsResponse

I also changed TermsResponse.Term#frequency to a long so that we don't overflow 
when calculating the frequency.  Then to keep back-compatbility with existing 
code I do the following when writing it to the NamedList:

if (tc.getFrequency() >= freqmin && tc.getFrequency() <= freqmax) {
    fieldterms.add(tc.getTerm(), ((Number)tc.getFrequency()).intValue());
    cnt++;
}

Is this a good approach?


This new patch includes SOLR-1139.



> Distributed TermsComponent
> --------------------------
>
>                 Key: SOLR-1177
>                 URL: https://issues.apache.org/jira/browse/SOLR-1177
>             Project: Solr
>          Issue Type: Improvement
>    Affects Versions: 1.4
>            Reporter: Matt Weber
>            Assignee: Shalin Shekhar Mangar
>            Priority: Minor
>             Fix For: 1.5
>
>         Attachments: SOLR-1177.patch, SOLR-1177.patch, SOLR-1177.patch, 
> SOLR-1177.patch, TermsComponent.java, TermsComponent.patch
>
>
> TermsComponent should be distributed

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

Reply via email to