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 B4C26DEF5 for ; Wed, 26 Sep 2012 19:00:47 +0000 (UTC) Received: (qmail 59772 invoked by uid 500); 26 Sep 2012 19:00:44 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 59646 invoked by uid 500); 26 Sep 2012 19:00:44 -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 59635 invoked by uid 99); 26 Sep 2012 19:00:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Sep 2012 19:00:44 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of erik.hatcher@gmail.com designates 209.85.160.48 as permitted sender) Received: from [209.85.160.48] (HELO mail-pb0-f48.google.com) (209.85.160.48) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Sep 2012 19:00:34 +0000 Received: by pbcwy7 with SMTP id wy7so1301364pbc.35 for ; Wed, 26 Sep 2012 12:00:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=5VlKjnTLNgjCSXP1w6WfeC6a81gp6+49J37C0w2Mxc8=; b=YkXK8Ajn1ZjjGkKebV+X8CbqZi7GHuKBH5s2p/0h0D2Y736nGoJVMXDR8/zEZQqZdy g/VQD50GJ8KWmfW8cjy+CjbAcJ0hlj1BoHv4OadK6xsdV70s7QQXsn4tHVf/2M6EH+Cc EZV4pObcKJe+o8/5kZ6aXNfBXMA/ZfF0up2Xc5KDKYLuPdnMCQ8E0njZ5Xz2PYoTCxvl smIoS985PkXrKt0+eeqE5m/mS9ep9+EgBAqFv3clPHtzHFpJPVUnz0t/YjGTHUYJYtHo ca4wASvd8a0Vqmtu0JSOcnzzS6ulQyvU1NDcqtknvCbVvQue7vUo2YYCu9+pg99OoBSB qm1w== Received: by 10.66.75.132 with SMTP id c4mr3548149paw.2.1348686013708; Wed, 26 Sep 2012 12:00:13 -0700 (PDT) Received: from [172.16.10.128] (68-233-218-146.static-ip.telepacific.net. [68.233.218.146]) by mx.google.com with ESMTPS id qa4sm2457904pbb.70.2012.09.26.12.00.08 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 26 Sep 2012 12:00:08 -0700 (PDT) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1257) Subject: Re: Items disappearing from Solr index From: Erik Hatcher In-Reply-To: Date: Wed, 26 Sep 2012 12:00:07 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: solr-user@lucene.apache.org X-Mailer: Apple Mail (2.1257) On Sep 26, 2012, at 04:47 , Kissue Kissue wrote: > getSolrServer().deleteByQuery(catalogueId + ":" + Emory Labs) [Notice = that > there are no quotes surrounding the catalogueId value - Emory Labs] The best way to do this type of query (where the field type is a string = with arbitrary characters that might mess with the lucene query parser) = is to use the "term" query parser. In this case, use [[[ {!term = f=3DcatalogueId}Emory Labs ]]], of course without the brackets. That'll = be the fail-safe way to this; consider the case where your catalogueId = field had double-quotes in it, so simply surround by double-quotes can = be problematic. Erik