Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9779410893 for ; Mon, 22 Jul 2013 10:25:12 +0000 (UTC) Received: (qmail 8394 invoked by uid 500); 22 Jul 2013 10:25:10 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 8209 invoked by uid 500); 22 Jul 2013 10:25:05 -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 Received: (qmail 8196 invoked by uid 99); 22 Jul 2013 10:25:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jul 2013 10:25:04 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [116.50.78.85] (HELO mta3.rancoretech.com) (116.50.78.85) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jul 2013 10:24:58 +0000 X-IronPort-AV: E=Sophos;i="4.89,718,1367951400"; d="scan'208";a="48556978" Received: from unknown (HELO outpostfix01.ril.com) ([10.66.8.167]) by gwsmtp011.ril.com with ESMTP; 22 Jul 2013 15:54:24 +0530 Received: from rdmail.rancoretech.com (unknown [10.22.140.196]) by outpostfix01.ril.com (Postfix) with SMTP id AA37512FBC9 for ; Mon, 22 Jul 2013 15:54:25 +0530 (IST) Received: from localhost (localhost.localdomain [127.0.0.1]) by rdmail.rancoretech.com (Postfix) with ESMTP id 9A0A24A886DB for ; Mon, 22 Jul 2013 15:54:25 +0530 (IST) X-Virus-Scanned: amavisd-new at rancoretech.com Received: from rdmail.rancoretech.com ([127.0.0.1]) by localhost (rdmail.rancoretech.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TJwVpxHdkSIv for ; Mon, 22 Jul 2013 15:54:25 +0530 (IST) Received: from [10.49.16.89] (unknown [10.49.16.89]) by rdmail.rancoretech.com (Postfix) with ESMTPSA id 7B4DF4A886DA for ; Mon, 22 Jul 2013 15:54:25 +0530 (IST) Message-ID: <51ED0859.8000600@rancoretech.com> Date: Mon, 22 Jul 2013 15:54:25 +0530 From: Ankit Murarka User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 MIME-Version: 1.0 To: java-user@lucene.apache.org Subject: Trying to search java.lang.NullPointerException in log file. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hello. I am trying to search java.lang.NullPointerException in a log file. The log file is huge. However I am unable to search it. This is because the StandardAnalyzer must be splitting the words on "SPACES" and since there is no space present here. The entire string is converted into 1 token. What can be a possible way of finding "Exception:java.lang.NullPointerException" in a log file. The string may be different also. Suppose "Exception: java.lang.NullPointerException error occured" I am trying to use Phrase Query but I am not sure if that will serve the purpose. Can please someone suggest. -- Regards Ankit --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org