priority queue in query component

2010-02-06 Thread mike anderson
I have a need to favor documents from one shard over another when duplicates occur. I found this code in the query component: String prevShard = uniqueDoc.put(id, srsp.getShard()); if (prevShard != null) { // duplicate detected numFound--;

Re: priority queue in query component

2010-02-06 Thread mike anderson
be to add sub-responses to the queue in the preferred order... so if we received the response from shard2 before shard1, we would just queue it up and wait for the response to shard1. -Yonik http://www.lucidimagination.com On Sat, Feb 6, 2010 at 10:35 AM, mike anderson saidthero

Re: [jira] Commented: (SOLR-785) Distributed SpellCheckComponent

2009-11-30 Thread Mike Anderson
I use this patch, but had to make one minor edit to get it working (this was a long time, so I don't quite remember the bug I was trying to solve), around line 174: for (ShardRequest sreq : rb.finished) { + if ((sreq.purpose ShardRequest.PURPOSE_GET_TOP_IDS) != 0){

Re: [jira] Commented: (SOLR-785) Distributed SpellCheckComponent

2009-11-30 Thread Mike Anderson
, Shalin Shekhar Mangar wrote: On Mon, Nov 30, 2009 at 11:08 PM, Mike Anderson mik...@mit.edu wrote: I use this patch, but had to make one minor edit to get it working (this was a long time, so I don't quite remember the bug I was trying to solve), around line 174: for (ShardRequest sreq

[jira] Commented: (SOLR-1316) Create autosuggest component

2009-11-19 Thread Mike Anderson (JIRA)
[ https://issues.apache.org/jira/browse/SOLR-1316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12780435#action_12780435 ] Mike Anderson commented on SOLR-1316: - Two questions, and apologies

[jira] Created: (SOLR-1550) statistics for request handlers should report std dev

2009-11-09 Thread Mike Anderson (JIRA)
statistics for request handlers should report std dev - Key: SOLR-1550 URL: https://issues.apache.org/jira/browse/SOLR-1550 Project: Solr Issue Type: Improvement Reporter: Mike

[jira] Updated: (SOLR-1550) statistics for request handlers should report std dev

2009-11-09 Thread Mike Anderson (JIRA)
[ https://issues.apache.org/jira/browse/SOLR-1550?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mike Anderson updated SOLR-1550: Attachment: SOLR-1550.patch I followed this algorithm: http://en.wikipedia.org/wiki

[jira] Updated: (SOLR-1550) statistics for request handlers should report std dev

2009-11-09 Thread Mike Anderson (JIRA)
[ https://issues.apache.org/jira/browse/SOLR-1550?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mike Anderson updated SOLR-1550: Attachment: SOLR-1550.patch tabs to spaces and cleaned up. statistics for request handlers should

[jira] Updated: (SOLR-1550) statistics for request handlers should report std dev

2009-11-09 Thread Mike Anderson (JIRA)
[ https://issues.apache.org/jira/browse/SOLR-1550?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mike Anderson updated SOLR-1550: Attachment: (was: SOLR-1550.patch) statistics for request handlers should report std dev

[jira] Commented: (SOLR-1143) Return partial results when a connection to a shard is refused

2009-11-02 Thread Mike Anderson (JIRA)
[ https://issues.apache.org/jira/browse/SOLR-1143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12772681#action_12772681 ] Mike Anderson commented on SOLR-1143: - What's the current state of this use case? I have

BooleanQuery constructor

2009-09-10 Thread Mike Anderson
I have a string that represents a boolean query (because I passed it in as a URL parameter), is it possible to instantiate a BooleanQuery object that represents this query? I think what I am looking for is something like a BooleanQuery constructor that takes in a string, but this doesn't

[jira] Updated: (SOLR-788) MoreLikeThis should support distributed search

2009-09-01 Thread Mike Anderson (JIRA)
[ https://issues.apache.org/jira/browse/SOLR-788?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mike Anderson updated SOLR-788: --- Attachment: AlternateDistributedMLT.patch I had trouble getting this to work in my distributed setup

[jira] Issue Comment Edited: (SOLR-788) MoreLikeThis should support distributed search

2009-09-01 Thread Mike Anderson (JIRA)
[ https://issues.apache.org/jira/browse/SOLR-788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12750158#action_12750158 ] Mike Anderson edited comment on SOLR-788 at 9/1/09 3:38 PM: I had

distributed search components

2009-08-21 Thread Mike Anderson
I'm trying to make my way through learning how to modify and write distributed search components. A few questions 1. in SearchHandler, when the query is broken down and sent to each shard, will this request make it's way to the process() method of the component (because it will look like

Re: distributed search components

2009-08-21 Thread Mike Anderson
I've been trying to dissect the MLT component and understand how it works. Every-time I think I have the process figured it out I somehow just end up more confused. Here is my so far best guess at how the process and flow work: 1. request comes in, and is routed to distributed section of

Re: distributed search components

2009-08-21 Thread Mike Anderson
I was working on MLT component with patch SOLR-788. On Aug 21, 2009, at 6:49 PM, Yonik Seeley wrote: On Fri, Aug 21, 2009 at 6:35 PM, Mike Andersonmik...@mit.edu wrote: I've been trying to dissect the MLT component and understand how it works. Every-time I think I have the process figured

[jira] Commented: (SOLR-788) MoreLikeThis should support distributed search

2009-08-19 Thread Mike Anderson (JIRA)
[ https://issues.apache.org/jira/browse/SOLR-788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12745079#action_12745079 ] Mike Anderson commented on SOLR-788: Yep, I got that part figured out finally

[jira] Issue Comment Edited: (SOLR-788) MoreLikeThis should support distributed search

2009-08-19 Thread Mike Anderson (JIRA)
[ https://issues.apache.org/jira/browse/SOLR-788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12745079#action_12745079 ] Mike Anderson edited comment on SOLR-788 at 8/19/09 9:00 AM: - Yep

[jira] Commented: (SOLR-788) MoreLikeThis should support distributed search

2009-08-17 Thread Mike Anderson (JIRA)
[ https://issues.apache.org/jira/browse/SOLR-788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12744233#action_12744233 ] Mike Anderson commented on SOLR-788: What release of SOLR should one apply this patch