changeset 1621:a9591906e608

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 25 Jul 2021 23:14:59 -0600
parents 99a8ac891914
children b7f8418fb7ba
files src/goodjava/lucene/queryparser/GoodQueryParser.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/goodjava/lucene/queryparser/GoodQueryParser.java	Sun Jul 25 18:59:23 2021 -0600
+++ b/src/goodjava/lucene/queryparser/GoodQueryParser.java	Sun Jul 25 23:14:59 2021 -0600
@@ -27,6 +27,7 @@
 		s = s.replace("\r","\\r");
 		s = s.replace("\t","\\t");
 		s = s.replace("\"","\\\"");
+		s = s.replace("-","\\-");
 		return s;
 	}