lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kelv...@apache.org
Subject cvs commit: jakarta-lucene-sandbox/contributions/javascript/queryValidator luceneQueryValidator.js
Date Thu, 05 Dec 2002 00:22:50 GMT
kelvint     2002/12/04 16:22:50

  Modified:    contributions/javascript/queryValidator
                        luceneQueryValidator.js
  Log:
  Added mutator for wildcardCaseInsensitive.
  
  Revision  Changes    Path
  1.3       +11 -2     jakarta-lucene-sandbox/contributions/javascript/queryValidator/luceneQueryValidator.js
  
  Index: luceneQueryValidator.js
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene-sandbox/contributions/javascript/queryValidator/luceneQueryValidator.js,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- luceneQueryValidator.js	3 Dec 2002 11:47:26 -0000	1.2
  +++ luceneQueryValidator.js	5 Dec 2002 00:22:50 -0000	1.3
  @@ -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)
     {
  
  
  

--
To unsubscribe, e-mail:   <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>


Mime
View raw message