Fix/search 1623 (#196)

* [SEARCH-1623]
Modified grammar and generated new Lexer and Parser(Modified for the too long method problem)

* [SEARCH-1623]
Added test case for testing name-dash identifiers

* [SEARCH-1623]
removed local references from FTSParser comments
This commit is contained in:
eliaporciani
2019-12-27 09:56:30 +01:00
committed by GitHub
parent 97cef5d5b5
commit a73e79fa33
4 changed files with 18752 additions and 11185 deletions

View File

@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2005-2015 Alfresco Software Limited.
*
* This file is part of Alfresco
@@ -1375,7 +1375,7 @@ ID
( '0'..'9' | '$' | '#' | F_ESC )*
)?
( 'a'..'z' | 'A'..'Z' | '_' )
( 'a'..'z' | 'A'..'Z' | '0'..'9' | '_' | '$' | '#' | F_ESC )*
( 'a'..'z' | 'A'..'Z' | '0'..'9' | '-' | '_' | '$' | '#' | F_ESC )*
;

File diff suppressed because one or more lines are too long

View File

@@ -21,6 +21,8 @@ ftsQuery:
"test_txt_woof" -> "(DISJUNCTION (CONJUNCTION (DEFAULT (TERM test_txt_woof))))"
"test,txt,woof" -> "(DISJUNCTION (CONJUNCTION (DEFAULT (TERM test , txt , woof))))"
"test\:txt\:woof" -> "(DISJUNCTION (CONJUNCTION (DEFAULT (TERM test\\:txt\\:woof))))"
"name-dash:file" -> "(DISJUNCTION (CONJUNCTION (DEFAULT (TERM file (FIELD_REF name-dash)))))"
"name-dash:file.txt" -> "(DISJUNCTION (CONJUNCTION (DEFAULT (TERM file . txt (FIELD_REF name-dash)))))"
"+\++" -> "(DISJUNCTION (CONJUNCTION (MANDATORY (TERM \\++))))"
".txt" -> "(DISJUNCTION (CONJUNCTION (DEFAULT (TERM . txt))))"
"*.txt" -> "(DISJUNCTION (CONJUNCTION (DEFAULT (TERM * . txt))))"