From 58e380b0e88e9fee7734a72af5e9a552a17502a0 Mon Sep 17 00:00:00 2001 From: Kelvin Tan Date: Thu, 5 Dec 2002 00:22:50 +0000 Subject: [PATCH] Added mutator for wildcardCaseInsensitive. git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150866 13f79535-47bb-0310-9956-ffa450edef68 --- .../javascript/queryValidator/luceneQueryValidator.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/sandbox/contributions/javascript/queryValidator/luceneQueryValidator.js b/sandbox/contributions/javascript/queryValidator/luceneQueryValidator.js index 9adf5f3c3f5..a3d55f8ca0e 100644 --- a/sandbox/contributions/javascript/queryValidator/luceneQueryValidator.js +++ b/sandbox/contributions/javascript/queryValidator/luceneQueryValidator.js @@ -3,11 +3,20 @@ // JavaScript Lucene Query Validator // Version: $Id$ +// Makes wildcard queries case-insensitive if true. +var wildcardCaseInsensitive = true; + +// Mutator method for wildcardCaseInsensitive. +// @param Should wildcard queries be case-insensitive? +function setWildcardCaseInsensitive(bool) +{ + wildcardCaseInsensitive = bool; +} + // validates a lucene query. // @param Form field that contains the query function doCheckLuceneQuery(queryField) { - var wildcardCaseInsensitive = true; var query = queryField.value; if(query != null && query.length > 0) {