Return-Path: Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: (qmail 14452 invoked from network); 21 Jan 2010 15:26:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Jan 2010 15:26:30 -0000 Received: (qmail 68547 invoked by uid 500); 21 Jan 2010 15:26:28 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 68467 invoked by uid 500); 21 Jan 2010 15:26:28 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 68457 invoked by uid 99); 21 Jan 2010 15:26:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jan 2010 15:26:28 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of erickerickson@gmail.com designates 209.85.220.210 as permitted sender) Received: from [209.85.220.210] (HELO mail-fx0-f210.google.com) (209.85.220.210) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jan 2010 15:26:20 +0000 Received: by fxm2 with SMTP id 2so90017fxm.5 for ; Thu, 21 Jan 2010 07:25:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=wyBFbCpormYKg2DnZcit/qbxLHcPTDPqP+wSG62qWC8=; b=Hevx3AndYxhN5RxZ7v+CU6D3YnkCuOYl5uS4mbOD+M6XdYkXtqt8AZh6HtXqbyLT0Q gmsbmTrLxKSAD6zwOEDNsGMo7BsTDt1ZD0sRMkkgEd51rT/yv1Q0aIHI9JejMrsiDwe8 78J6nRz25EX9BC7rP6DNXAn0+PziIiwYOiwAA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=HbZKijlZCtCkYBzkfD2XLYdDHbn3rJHQSiDnAhpnfsBZ4XNsYOvIqhvr95f21/EwrG oi/Xh4F6SaVYYiMpMW6W0yt/7YWn0hcKyCcitp0V4EiIgFzjgYf9htlaKV1XA6jijV9j u+XtGHlrszZPrk2D9OR/cdzo+VoKHzdrcvxig= MIME-Version: 1.0 Received: by 10.216.86.206 with SMTP id w56mr597738wee.1.1264087558311; Thu, 21 Jan 2010 07:25:58 -0800 (PST) In-Reply-To: <27259310.post@talk.nabble.com> References: <27259310.post@talk.nabble.com> Date: Thu, 21 Jan 2010 10:25:48 -0500 Message-ID: <359a92831001210725r2d35aa63q2c2846ae2f1ef1e3@mail.gmail.com> Subject: Re: Choosing what document to return. From: Erick Erickson To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=0016e6d783fce0cf0d047dae5136 --0016e6d783fce0cf0d047dae5136 Content-Type: text/plain; charset=ISO-8859-1 What's the higher-level task you're trying to accomplish? Because on a quick read it looks like you're trying something that's akin to a join between two indexes, and if that's accurate I have great fears about performance. I guess it boils down to how costly getting your other_index_value is.... Mostly, I'm trying to be sure this isn't an XY problem before you waste time implementing a solution that won't work out.... Erick On Thu, Jan 21, 2010 at 10:14 AM, Noam G. wrote: > > Hi Guys, > > I'll start by thanking every one for an amazing search engine! > > What am I trying to do? Basically what I need is the ability to do some > kind > of "switch" or an "if-else" flow based on the field value and a parameter > that I will pass using the query string. The result will be documents that > comply with this logic. > > For example (myval1, myval2 and myval3 are the params from the query > string): > if(index_value == myval1) { > if(other_index_value == 1){ > don't return the document; > } else { > return the document; > } > }else if(index_value == myval2) { > ....... > }else if(index_value == myval3) { > ....... > } > > What should I override to implement this? > > Thank you very much, > > Noam. > -- > View this message in context: > http://old.nabble.com/Choosing-what-document-to-return.-tp27259310p27259310.html > Sent from the Solr - User mailing list archive at Nabble.com. > > --0016e6d783fce0cf0d047dae5136--