Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5F7AE7D1C for ; Thu, 8 Sep 2011 11:29:40 +0000 (UTC) Received: (qmail 90305 invoked by uid 500); 8 Sep 2011 11:29:37 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 89717 invoked by uid 500); 8 Sep 2011 11:29:14 -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 89700 invoked by uid 99); 8 Sep 2011 11:29:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Sep 2011 11:29:07 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of elisaelisaelisa@gmail.com designates 209.85.216.169 as permitted sender) Received: from [209.85.216.169] (HELO mail-qy0-f169.google.com) (209.85.216.169) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Sep 2011 11:28:59 +0000 Received: by qyk27 with SMTP id 27so273336qyk.14 for ; Thu, 08 Sep 2011 04:28:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=CyAc10AYGCxE3jFopSl8su+TQjl83dCPK23ttdxuXRE=; b=CiJ6Uk9ZytrEhe4w2R+h4fbGAY/DFUlYLpuO4t/daAgKUH0d15XYUJKNMWosiM1nSO lo4DVQIJhtnqLHdsi+MzeeoFl3+ag5FdISiv4lXPJ5EoZOWEFBk9TenYWRGiFv61W2sp PCESTB951h6bOal8KaBW4matNAqBC340tEyLk= MIME-Version: 1.0 Received: by 10.229.65.85 with SMTP id h21mr423884qci.46.1315481318527; Thu, 08 Sep 2011 04:28:38 -0700 (PDT) Received: by 10.229.238.193 with HTTP; Thu, 8 Sep 2011 04:28:38 -0700 (PDT) In-Reply-To: References: Date: Thu, 8 Sep 2011 13:28:38 +0200 Message-ID: Subject: Re: no result with q From: elisabeth benoit To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=0016e64e920eb3134404ac6c5c77 X-Virus-Checked: Checked by ClamAV on apache.org --0016e64e920eb3134404ac6c5c77 Content-Type: text/plain; charset=ISO-8859-1 ok, I guess I found how q=49 OR * 2011/9/8 elisabeth benoit > > Hello, > > I have a query > > /select?&q=49&q.alt=*:*&fq=NAME_ANALYZED:decorasol AND WAY_ANALYZED:rue > charonne AND (TOWN_ANALYZED:paris OR > DEPARTMENT_ANALYZED:paris)&rows=50&fl=*,score& > > returning no answer because of the q=49 parameter. > > The query > > /select?&q=&q.alt=*:*&fq=NAME_ANALYZED:decorasol AND WAY_ANALYZED:rue > charonne AND (TOWN_ANALYZED:paris OR > DEPARTMENT_ANALYZED:paris)&rows=50&fl=*,score& > > > (the only difference is "q=" instead of "q=49") > > returns the answer I'm expecting > > Is there a way to tell Solr to only use fq and neglect q if no answer? Or > am I doomed to send first request, realize I've got no answer and then send > a second request? > > I guess so, but just checking, just in case. > > Thanks, > Elisabeth > > --0016e64e920eb3134404ac6c5c77--