mirror of https://github.com/apache/lucene.git
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:
parent
96c581df2c
commit
58e380b0e8
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue