Commit Graph

23 Commits

Author SHA1 Message Date
Kelvin Tan cd10939321 AND-ed query was being appended to the original one.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150989 13f79535-47bb-0310-9956-ffa450edef68
2004-06-07 11:05:23 +00:00
Kelvin Tan 3e595abf2d Incorporates Erik's idea of displaying query inline, not as pop-up, and also the query validation feature.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150981 13f79535-47bb-0310-9956-ffa450edef68
2004-05-17 13:29:24 +00:00
Kelvin Tan bc26b64269 Complete revamp of luceneQueryConstructor.
Added demo and introduction HTML page.
Added jsUnit tests.

WARNING: this version should be considered incompatible with previous versions.
Migration effort is minimal and I'm happy to answer questions about migration posted to lucene-user, but
I'm under the impression the previous versions weren't widely used (if at all) anyways.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150979 13f79535-47bb-0310-9956-ffa450edef68
2004-05-17 13:04:42 +00:00
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 0e30c11124 Added doANDTerms method to construct Google-like queries.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150962 13f79535-47bb-0310-9956-ffa450edef68
2004-03-06 08:22:05 +00:00
Kelvin Tan 854c344317 Initial commit.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150950 13f79535-47bb-0310-9956-ffa450edef68
2004-02-18 06:20:15 +00:00
Erik Hatcher 8c1b134a7a enhanced sample, but validator is acting up it seems. kelvin - am i doing something wrong?
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150938 13f79535-47bb-0310-9956-ffa450edef68
2004-01-23 16:59:38 +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 f557749d86 Optional debug param in doMakeQuery method.
More efficient element/modifier matching.
Supports text, radio, select-one, select-multiple and textarea fields for input (multiple values are separated by space by default).


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150884 13f79535-47bb-0310-9956-ffa450edef68
2003-05-08 06:00:02 +00:00
Kelvin Tan 388a02fa1d Whitespace within the query string wasn't getting gobbled up.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150867 13f79535-47bb-0310-9956-ffa450edef68
2002-12-11 03:29:05 +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 96c581df2c Trims field values to address any validation problems with whitespace.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150865 13f79535-47bb-0310-9956-ffa450edef68
2002-12-05 00:21:45 +00:00
Kelvin Tan 0bf9042be4 Supports radio buttons and text fields as modifiers, instead of boring old select lists.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150864 13f79535-47bb-0310-9956-ffa450edef68
2002-12-03 11:48:17 +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 b84ac2fb26 Merged the various add* methods into a single method. Added constants for AND, NOT and OR prefix modifiers.
Added a default modifier.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150763 13f79535-47bb-0310-9956-ffa450edef68
2002-05-09 02:39:26 +00:00
Kelvin Tan 9b57a1288f Initial commit of a javascript lib as a web-based GUI for boolean query construction.
Based on the file posted at http://marc.theaimsgroup.com/?l=lucene-user&m=101366456309906&w=2.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150762 13f79535-47bb-0310-9956-ffa450edef68
2002-05-09 02:18:00 +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