aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/search/query/parser/Parser.java
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@verizonmedia.com>2019-04-05 11:30:04 +0200
committerJon Bratseth <bratseth@verizonmedia.com>2019-04-05 11:30:04 +0200
commit152d3a06369fdfc38ca81f4c01a4a78e627067a6 (patch)
treee831e7e76c222f9739323f212f9b2fca7c3b8d13 /container-search/src/main/java/com/yahoo/search/query/parser/Parser.java
parent1811c8f1d2d11089d34999df976de40bfb8a15e6 (diff)
Better heuristics for negative numbers
- Interpret "-N" as a positive term searching a negative number rather than the other way around in more cases. - Interpret "--N" as a negative term searching a negative number.
Diffstat (limited to 'container-search/src/main/java/com/yahoo/search/query/parser/Parser.java')
-rw-r--r--container-search/src/main/java/com/yahoo/search/query/parser/Parser.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/query/parser/Parser.java b/container-search/src/main/java/com/yahoo/search/query/parser/Parser.java
index 32c386f0e32..b3d79f65df4 100644
--- a/container-search/src/main/java/com/yahoo/search/query/parser/Parser.java
+++ b/container-search/src/main/java/com/yahoo/search/query/parser/Parser.java
@@ -15,8 +15,7 @@ public interface Parser {
* {@link QueryTree}. If parsing fails without an exception, the contained
* root will be an instance of {@link com.yahoo.prelude.query.NullItem}.
*
- * @param query
- * the Parsable to parse
+ * @param query the Parsable to parse
* @return the parsed QueryTree, never null
*/
QueryTree parse(Parsable query);