Kelvin Tan
aa7e95dae2
Implemented tests for checkAllowedCharacters and checkANDORNOT.
...
Imported a whole bunch of tests from TestQueryParser.java.
Except for the term1 !term2 queries (which are commented out for now), all tests go green!!
Woohoo!!
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150978 13f79535-47bb-0310-9956-ffa450edef68
2004-05-17 11:56:17 +00:00
Kelvin Tan
adb3ef0db2
Added backslash to list of allowed characters.
...
Implemented checkANDORNOT, with thanks to Michel Valade (m_valade at hotmail.com)
for suggested change to the regex.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150977 13f79535-47bb-0310-9956-ffa450edef68
2004-05-17 11:53:59 +00:00
Kelvin Tan
b89cb9ac38
Fixed silly typo.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150968 13f79535-47bb-0310-9956-ffa450edef68
2004-03-26 07:43:22 +00:00
Kelvin Tan
8afe28b9f7
Added 2 asterisk test cases.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150967 13f79535-47bb-0310-9956-ffa450edef68
2004-03-26 07:43:10 +00:00
Kelvin Tan
7865adc2dd
Extracted validation methods so they can be tested via jsunit.
...
Handles query escaping via a workaround. Yay!
Checks for empty quotes.
Simplified many REs.
Allows the '=' sign.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150966 13f79535-47bb-0310-9956-ffa450edef68
2004-03-16 03:17:17 +00:00
Kelvin Tan
eb9bc807da
Fixed case where wildcard character at start of string.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150923 13f79535-47bb-0310-9956-ffa450edef68
2004-01-13 07:01:32 +00:00
Kelvin Tan
51773a46e6
An almost complete rewrite of all RE patterns.
...
Supports a more complete set of possible characters and also
special characters referenced mentioned in http://jakarta.apache.org/lucene/docs/queryparsersyntax.html .
Supports full query parser syntax except for AND NOT OR, but warns user of possible errors for these queries.
Added alertUser option to disable window.alert boxes.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150917 13f79535-47bb-0310-9956-ffa450edef68
2004-01-10 13:28:33 +00:00
Kelvin Tan
4d96f7eb97
Fixed bug where the field in a wildcard field search was being lowercased.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150896 13f79535-47bb-0310-9956-ffa450edef68
2003-12-16 02:22:02 +00:00
Kelvin Tan
58e380b0e8
Added mutator for wildcardCaseInsensitive.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150866 13f79535-47bb-0310-9956-ffa450edef68
2002-12-05 00:22:50 +00:00
Kelvin Tan
1843c58c5c
Added a flag for wildcard case-insensitivity.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150863 13f79535-47bb-0310-9956-ffa450edef68
2002-12-03 11:47:26 +00:00
Kelvin Tan
f6c9d225a1
Initial commit of javascript lucene query validator.
...
This is the version from http://marc.theaimsgroup.com/?l=lucene-user&m=101964415222254&w=2 .
I'm so glad its finally been rescued from the depths of mailing list archives!
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150761 13f79535-47bb-0310-9956-ffa450edef68
2002-05-08 15:56:58 +00:00