Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

AND-ed query was being appended to the original one.

Kelvin Tancd1093932123
diff --git a/sandbox/contributions/javascript/queryConstructor/luceneQueryConstructor.js b/sandbox/contributions/javascript/queryConstructor/luceneQueryConstructor.js
index 3d3a731c609..09187384163 100644
--- a/sandbox/contributions/javascript/queryConstructor/luceneQueryConstructor.js
+++ b/sandbox/contributions/javascript/queryConstructor/luceneQueryConstructor.js
@@ -109,7 +109,9 @@ function doMakeQuery( query, dbg )
// @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();