Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 3746 invoked from network); 14 Nov 2006 09:47:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Nov 2006 09:47:34 -0000 Received: (qmail 1106 invoked by uid 500); 14 Nov 2006 09:47:38 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 1085 invoked by uid 500); 14 Nov 2006 09:47:38 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Delivered-To: moderator for java-user@lucene.apache.org Received: (qmail 97158 invoked by uid 99); 14 Nov 2006 07:19:43 -0000 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) X-Server-Uuid: 8E43C66C-9DC0-4EF6-8749-D8C04BB61E49 MIME-Version: 1.0 To: java-user@lucene.apache.org Subject: Specific string query search Sensitivity: X-Mailer: Lotus Notes 652HF1094 September 19, 2005 Message-ID: From: "Gaurav Kalra" Date: Tue, 14 Nov 2006 12:48:52 +0530 X-HANotesOU: Gurgaon X-MIMETrack: Serialize by Router on LINTNG1/National/Hewitt Associates(Release 6.5.5FP1 HF52|June 29, 2006) at 11/14/2006 01:18:57 AM, Serialize complete at 11/14/2006 01:18:57 AM X-WSS-ID: 6947B26B3DW19809103-01-01 Content-Type: multipart/alternative; boundary="=_alternative 00282D5465257226_=" X-Virus-Checked: Checked by ClamAV on apache.org --=_alternative 00282D5465257226_= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi all, I have a specific string query like "Jakarta:" How do i get that? I am using standardAnalyzer and it seems as if it is stripping ":" and it is simply searching for "Jakarta". I have used WhiteSpaceAnalyzer also and its working fine for ":" but I think it has some other limitations. The limitations of WhiteSpaceAnalyzer which I have noticed are as follows: 1. It needs the search criteria in the proper case i.e for searching "Jakarta" I cant give "jakarta" as my search criteria. 2. WhiteSpaceAnalyzer is not supporting FIELD:TEXT kind of search. e.g ISSUE_TITLE:test where ISSUE_TITLE is the field in which test is to be searched. But standardAnalyzer supports this. May be the limitations I am seeing is because of my code. Can you please help me out as to how I can do a search like "Jakarta:". I would appreciate if could please send me the code snippet doing this kind of search. Thanks & Regards Gaurav Kalra The information contained in this e-mail and any accompanying documents may contain information that is confidential or otherwise protected from disclosure. If you are not the intended recipient of this message, or if this message has been addressed to you in error, please immediately alert the sender by reply e-mail and then delete this message, including any attachments. Any dissemination, distribution or other use of the contents of this message by anyone other than the intended recipient is strictly prohibited. --=_alternative 00282D5465257226_=--