I want to filter the error logs starting with "ORA-" in the Oracle Alert log, but when I use the query expression of message: "ORA-*" to filter, many strings starting with ORA are also matched, hyphen characters will be ignored.
Here, to sum up the behavior, the text "ORA-27102" is analyzed to ["ora", "27102"] and index like this.
At search time, the text ORA- is analyzed to ["ora"] which matches every token ora.
Thanks for such a quick reply.After I modified the index to use the whitespace tokenizer, I can now search through ORA-*. Thank you very much for your help.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.