Even though you're on the Lucene list, consider installing Solr just to see the admin/analysis page to see how your index and query analysis works. There's no reason you couldn't split this up on periods into separate words and then just use phrase query to find java.lang.NullPointerException, but it depends entirely on your analysis chain.
Best Erick On Mon, Jul 22, 2013 at 6:24 AM, Ankit Murarka <ankit.mura...@rancoretech.com> wrote: > 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-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org