mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
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:
@@ -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
File diff suppressed because it is too large
Load Diff
@@ -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))))"
|
||||
|
Reference in New Issue
Block a user