[jira] Updated: (SOLR-1177) Distributed TermsComponent

2009-12-13 Thread Shalin Shekhar Mangar (JIRA)

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

Shalin Shekhar Mangar updated SOLR-1177:


Attachment: SOLR-1177.patch

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

I changed freqmin and freqmax to long and used Yonik's method to write int if 
possible or else switch to longs in the response.

I'll commit this shortly.

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



[jira] Updated: (SOLR-1177) Distributed TermsComponent

2009-12-12 Thread Matt Weber (JIRA)

 [ 
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

New patch that DOES NOT include the code for SOLR-1139.  Make sure you have 
SOLR-1139 applied before using this patch.

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



[jira] Updated: (SOLR-1177) Distributed TermsComponent

2009-12-11 Thread Shalin Shekhar Mangar (JIRA)

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

Shalin Shekhar Mangar updated SOLR-1177:


Attachment: SOLR-1177.patch

# Based on Matt's patch
# Synced to trunk
# Uses BaseDistributedTestCase

All tests pass.

I had to change TermData#frequency to an int to match the output of distributed 
and non-distributed cases. It is theoretically possible to have the sum of 
frequencies from all shards to exceed size of an int but I don't think it is 
practical right now. The problem is that we represent frequency as int 
everywhere for non-distributed responses. If we want longs in distributed 
search responses then we must start using longs in non-distributed responses as 
well to maintain compatibility.

Matt -- There is an issue open for adding SolrJ support for TermsComponent - 
SOLR-1139. Is it possible to replace the TermsHelper and TermData classes by 
classes in SOLR-1139? I'd like to have the same classes parsing responses in 
Solrj and distributed search.

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



[jira] Updated: (SOLR-1177) Distributed TermsComponent

2009-12-11 Thread Matt Weber (JIRA)

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



[jira] Updated: (SOLR-1177) Distributed TermsComponent

2009-05-21 Thread Matthew Woytowitz (JIRA)

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

Matthew Woytowitz updated SOLR-1177:


Attachment: TermsComponent.java
TermsComponent.patch

I got the previous patch working.  It was we close.  I attached the java file 
and a patch for just the TermsComponent

 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
Priority: Minor
 Fix For: 1.5

 Attachments: 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.



[jira] Updated: (SOLR-1177) Distributed TermsComponent

2009-05-20 Thread Matt Weber (JIRA)

 [ 
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 my first attempt at a patch that is not currently working.  For some 
reason only the prepare and process methods are being called.  It seems that 
the shards parameter is not being honored like it is in the other distributed 
components because rb.shards is always null.  I have looked at the other 
distributed components and did not notice them doing anything special with the 
shards parameter.   I have based this code on the information from 
http://wiki.apache.org/solr/WritingDistributedSearchComponents and looking 
though the FacetComponent, DebugComponent, StatsComponent, and 
HighlightComponent code.  Any help figuring out why the other methods are not 
being called is greatly appreciated.  Please ignore the println statments, they 
are for debug only and will be removed in the finalized, working patch.

Thanks!

 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
Priority: Minor
 Fix For: 1.5

 Attachments: SOLR-1177.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.