- Issue created by @rnsrk
When constructing Solr queries by concatenating multiple conjunction terms, parentheses are missing around individual conditions. This results in queries that do not group conditions as intended, potentially leading to incorrect query results. For example, the current query format is params = q=+field=value+AND++field2=value2+
, but it should be formatted as q=(field=value)AND(field2=value2)
to ensure proper execution and result accuracy.
The proposed resolution involves modifying the query construction logic to automatically include parentheses around each condition when concatenating them with conjunctions and remove spaces to avoid plus signs. May replace implode with string concatenation.
Active
2.1
Code