Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2564D200B8B for ; Tue, 20 Sep 2016 01:49:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2136E160ADF; Mon, 19 Sep 2016 23:49:23 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 5CED2160ACC for ; Tue, 20 Sep 2016 01:49:22 +0200 (CEST) Received: (qmail 87850 invoked by uid 500); 19 Sep 2016 23:49:21 -0000 Mailing-List: contact general-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@lucene.apache.org Delivered-To: mailing list general@lucene.apache.org Received: (qmail 87681 invoked by uid 99); 19 Sep 2016 23:49:20 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Sep 2016 23:49:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 5E710180298 for ; Mon, 19 Sep 2016 23:49:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.282 X-Spam-Level: * X-Spam-Status: No, score=1.282 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_EMBEDS=0.001, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=cominvent-com.20150623.gappssmtp.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id ewFxcie81A7x for ; Mon, 19 Sep 2016 23:49:16 +0000 (UTC) Received: from mail-lf0-f52.google.com (mail-lf0-f52.google.com [209.85.215.52]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 347AF5FBC5 for ; Mon, 19 Sep 2016 23:49:16 +0000 (UTC) Received: by mail-lf0-f52.google.com with SMTP id l131so506613lfl.2 for ; Mon, 19 Sep 2016 16:49:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cominvent-com.20150623.gappssmtp.com; s=20150623; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=r2DOkouD8zYCGS+Oab9e/IWpT9LLfwe2Py5i6toT+zw=; b=uvrlIXNwUHxZ4nr2/tcoabySUG1H0zYKpc3Uq8ZcfcnYDq45Uh+YL13Kwm4h6ogG6l WtjdgIXu5o72P0DnFSHA6D8M0Hkg9UHvIZSeaI5WvqN6CDQIfaRHRvYF/JTtp5vkI3Bb cg9RnW9oDYg38IYzXUPdixVVpBlu2f1avhE9GZyRascczEjJbIi19cDFDs8mhYgVIzPI qND+9rTXtLN+Qp/IsfVAgz5pOJ8NZNFQT6a5l3rBSZMrWLqTOoD5ndNJ7WKzVe8pvh9m NCMTAp/ee0egJ5dEDI2mgTPrOEGesCVVaeb6F+cY8WGq2wg9nh5nWoq6iN2lI78thDji BbNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=r2DOkouD8zYCGS+Oab9e/IWpT9LLfwe2Py5i6toT+zw=; b=aeUz8NcCFU7YVs2J6QG0I8Aulqv8D5QkWOxH2AR3/xzQbp/dL08HoBeUnH6hgIF+XN KrzvQbbBMybSA0PqxAwPhuou9FU2iVtvUWGrgVJMgSMrGU8aUPOV/g5q3AXFLpPHLKDp v5VxJWuElGBifKlZh7IYrSsZs8GMQxgbyRHrg/DDzp0omntwTJjf9K44oCv8uYUTnel7 3WLoIgVLfcbyF3KjmnpUPBbLtcYbxCYCEne9ImjBZKSyAwnfncNuAn9Jpg92iNxBltLr PJo4cpgFfmhDGklBePt54v8+4m0Pk4Rk2+0XbQgavwgO6QTsFVmN4lUwPKEymaR5aZsM xrwQ== X-Gm-Message-State: AE9vXwOtuilpE4frbAWw7FxshjjeRKLLvdpw5ZgS6PJx/W0YLOjBAogqQXhZ4cBPjfliUw== X-Received: by 10.25.18.23 with SMTP id h23mr4898001lfi.5.1474328954639; Mon, 19 Sep 2016 16:49:14 -0700 (PDT) Received: from [192.168.0.11] (cm-84.211.180.8.getinternet.no. [84.211.180.8]) by smtp.gmail.com with ESMTPSA id h10sm2387919lfh.34.2016.09.19.16.49.13 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Sep 2016 16:49:13 -0700 (PDT) From: =?utf-8?Q?Jan_H=C3=B8ydahl?= Content-Type: multipart/alternative; boundary="Apple-Mail=_963D65E5-0711-4DC1-B252-8ACDC0E4E303" Mime-Version: 1.0 (Mac OS X Mail 10.0 \(3226\)) Subject: Re: solr can't escape special characters Date: Tue, 20 Sep 2016 01:49:13 +0200 References: <402bddbc4e9e408c9973581684f723dc@cnbox2.mioffice.cn> To: general@lucene.apache.org In-Reply-To: <402bddbc4e9e408c9973581684f723dc@cnbox2.mioffice.cn> Message-Id: <5B03FA21-8469-404D-A1CB-DA42C14F9926@cominvent.com> X-Mailer: Apple Mail (2.3226) archived-at: Mon, 19 Sep 2016 23:49:23 -0000 --Apple-Mail=_963D65E5-0711-4DC1-B252-8ACDC0E4E303 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, Can you post your question over at solr-user@lucene.apache.org mailing = list? And FYI the image attachement did not make it thgough. Can you upload it = somewhere (Dropbox?) and include the link? Can you also try your query directly in the browser address bar, not in = the Admin UI? e.g. http://localhost:8983/solr/techproducts/select?q=3Dtest= -- Jan H=C3=B8ydahl, search solution architect Cominvent AS - www.cominvent.com > 19. sep. 2016 kl. 07.24 skrev Yue9 Zhang =E5=BC=A0=E8=B6=8A = : >=20 > Hi, all: > I met a problem with solr. I have docs containing characters like = []?! etc. I want to search such docs. Documents say > =20 > Escaping Special Characters >=20 > Lucene supports escaping special characters that are part of the query = syntax. >=20 > The current list special characters are >=20 > && || ! ( ) { } [ ] ^ " ~ * ? : \ To escape these character use the \ = before the character. For example to search >for (1+1):2 use the query: >=20 > (1+1)\:2 > =20 > =20 > But on solr Ui Admin, It doesn=E2=80=99t work as documents say. = Result show below > =20 > Where is the problem? Thank you for your help! > =20 > Best Wishes! > =20 > Zhang Yue --Apple-Mail=_963D65E5-0711-4DC1-B252-8ACDC0E4E303--