Added mutator for wildcardCaseInsensitive.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150866 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Kelvin Tan 2002-12-05 00:22:50 +00:00
parent 96c581df2c
commit 58e380b0e8
1 changed files with 10 additions and 1 deletions

View File

@ -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)
{