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 B005B200B13 for ; Wed, 15 Jun 2016 14:55:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AB893160A4D; Wed, 15 Jun 2016 12:55:13 +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 F2A2E160A4C for ; Wed, 15 Jun 2016 14:55:12 +0200 (CEST) Received: (qmail 24296 invoked by uid 500); 15 Jun 2016 12:55:11 -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 24284 invoked by uid 99); 15 Jun 2016 12:55:10 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jun 2016 12:55:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 5A5C4C278A for ; Wed, 15 Jun 2016 12:55:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -2.247 X-Spam-Level: X-Spam-Status: No, score=-2.247 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id f7HaK312FDy5 for ; Wed, 15 Jun 2016 12:55:08 +0000 (UTC) Received: from nm18-vm4.bullet.mail.ne1.yahoo.com (nm18-vm4.bullet.mail.ne1.yahoo.com [98.138.91.178]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 5C59C5F3A1 for ; Wed, 15 Jun 2016 12:55:07 +0000 (UTC) Received: from [98.138.101.129] by nm18.bullet.mail.ne1.yahoo.com with NNFMP; 15 Jun 2016 12:55:00 -0000 Received: from [98.138.89.174] by tm17.bullet.mail.ne1.yahoo.com with NNFMP; 15 Jun 2016 12:55:00 -0000 Received: from [127.0.0.1] by omp1030.mail.ne1.yahoo.com with NNFMP; 15 Jun 2016 12:55:00 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 134085.8615.bm@omp1030.mail.ne1.yahoo.com X-YMail-OSG: H_ZOqWAVM1mSZUu5Tuk9UqXq.ojkCCfFh3EtZrBTvnmI0Tu.LcrSmPS8qkbwBcQ jZEOO7IIBs0K450e8_O5SgvTVRDTpW5VBT3UWfEB0gpJCgkPYrHfxPuGYY1NeFVRRbrs2b5obadJ tmToY8Ejihjy9DJ3ZSsIfizxKqEgT7B3WyeKgbk6WHgT1QnhfY1WOj9tR.4QtuToGfxk6kMsMzMl xsI149dpqlmPqj1QI_O0kvgJxQLZJ5t1r4Hkl2Du45zLah.1A9YbNngB6BJPx5yiMnuRHIbMmzAg J19sLihMNhyPWg2o5FyUx4YMNfqvlGXrWQivSM2.uI4aPFUtX4PTM2MxY7CUp2qq_yO5VOjauzVW cVNrEh0q1nclmZfMWM6hYVduSbRnOWqtt6pAMNltKl6QfXuVnnWa9YW8oCqu3HOkLow9wbB6galy ohpmhQZa7jmF.eSwtWS16rGTwKCexwhAl20QY7ua.7CFN48zm0B3pKEhDDM6r8AJbqa0uzxxMe06 ffvrQ4fLGozf0kwztM_n_6q6vRXr3lZXsM2dgkiQRWg-- Received: from jws10085.mail.ne1.yahoo.com by sendmailws132.mail.ne1.yahoo.com; Wed, 15 Jun 2016 12:54:59 +0000; 1465995299.621 Date: Wed, 15 Jun 2016 12:54:59 +0000 (UTC) From: Ahmet Arslan Reply-To: Ahmet Arslan To: "solr-user@lucene.apache.org" , "Roshan.Kamble@smartstreamrdu.com" Message-ID: <692427926.2864187.1465995299144.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: <06b7398aa0584b5f9eb164485d3184ba@BRISVMAIL.sst.stp> References: <06b7398aa0584b5f9eb164485d3184ba@BRISVMAIL.sst.stp> Subject: Re: wildcard search for string having spaces MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit archived-at: Wed, 15 Jun 2016 12:55:13 -0000 Hi Roshan, I think there are two options: 1) escape the space q=abc\ p* 2) use prefix query parser q={!prefix f=my_string}abc p Ahmet On Wednesday, June 15, 2016 3:48 PM, Roshan Kamble wrote: Hello, I have below custom field type defined for solr 6.0.0 I am using above field to ensure that entire string is considered as single token and search should be case insensitive. It works for most of the scnearios with wildcard search. e.g. if my data is "abc.pqr" and "abc_pqr" and "abc pqr" then search with abc* gives this three results. But I am not able to search with say abc p* Search with query q="abc pqr" gives exact match and desired result. I want to do wildcard search where criteria can include spaces like above example i.e. if space is present then I am not able to to wildcard search. Is there any way by which wildcard search will be achieved even if space is present in token. Regards, Roshan ________________________________ The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful.