You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by ke...@apache.org on 2004/06/07 13:05:23 UTC

cvs commit: jakarta-lucene-sandbox/contributions/javascript/queryConstructor luceneQueryConstructor.js

kelvint     2004/06/07 04:05:23

  Modified:    contributions/javascript/queryConstructor
                        luceneQueryConstructor.js
  Log:
  AND-ed query was being appended to the original one.
  
  Revision  Changes    Path
  1.11      +4 -2      jakarta-lucene-sandbox/contributions/javascript/queryConstructor/luceneQueryConstructor.js
  
  Index: luceneQueryConstructor.js
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene-sandbox/contributions/javascript/queryConstructor/luceneQueryConstructor.js,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- luceneQueryConstructor.js	17 May 2004 13:28:11 -0000	1.10
  +++ luceneQueryConstructor.js	7 Jun 2004 11:05:23 -0000	1.11
  @@ -109,7 +109,9 @@
   // @return Submits the form if submitOnConstruction=true, else returns the query param
   function doANDTerms(query)
   {
  -  appendTerms(query, AND_MODIFIER, query.value);
  +  var value = query.value;
  +  query.value = "";
  +  appendTerms(query, AND_MODIFIER,  value);
     if(submitForm)
     {
       frm.submit();
  
  
  

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