You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "serhiy-bzhezytskyy (via GitHub)" <gi...@apache.org> on 2026/08/19 12:58:08 UTC

[PR] SOLR-18372: remove FunctionQParser.parseMultipleSources accessors [solr]

serhiy-bzhezytskyy opened a new pull request, #4753:
URL: https://github.com/apache/solr/pull/4753

   ## Spec
   
   `FunctionQParser` parses a function-query string into a `ValueSource`. By default it expects exactly one value expression; trailing comma separated content is a syntax error — this is the guard against malformed queries (e.g. a stray comma).
   
   Functions over multi-dimensional points — `geodist`, `dist`, `hsin`, `sqedist`, all documented in the ref guide as taking "two or more" value sources in pairs — may receive their point via a `$param` reference (`geodist($pt)`, `pt=lat,lon`) instead of inline literals. A referenced value carries no syntax of its own to opt into multiple values, so the parser must collect a comma separated `$param` value into a vector on the referencing function's behalf.
   
   ## ACs
   
   - `{!func}5` — single value, unaffected.
   - `{!func}x,y,z,w,0,0,0` (no wrapping function) — still `SyntaxError`, unaffected.
   - `geodist($pt)`, `dist(...,$pt)` and any other `$param` dereference still resolve into a vector — pinned by `QueryEqualityTest#testFuncGeodist`, `TestFunctionQuery#testGeneral`, `DistanceFunctionTest#testLatLon`, all pre-existing and unmodified.
   - `setParseMultipleSources`/`getParseMultipleSources` removed — zero external callers anywhere in the tree.
   - `multiple=true` local param removed too: zero ref-guide mentions, zero tests, zero CHANGES.txt history — never a documented contract. `{!func multiple=true}1,2,3` now throws `SyntaxError`.
   
   ## Design
   
   The removed field was a mutable flag written from two places and read once elsewhere — the diff replaces it with a private overload taking an explicit argument, no shared mutable state.
   
   AI-assisted (Claude Sonnet 5)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


Re: [PR] SOLR-18372: remove FunctionQParser.parseMultipleSources accessors [solr]

Posted by "epugh (via GitHub)" <gi...@apache.org>.
epugh commented on PR #4753:
URL: https://github.com/apache/solr/pull/4753#issuecomment-5363520551

   Yeah, it was a day ago, but not the two business days as you said....  itchy fingers.
   
   I can undo this or just remember to be less itchy fingers.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


Re: [PR] SOLR-18372: remove FunctionQParser.parseMultipleSources accessors [solr]

Posted by "epugh (via GitHub)" <gi...@apache.org>.
epugh merged PR #4753:
URL: https://github.com/apache/solr/pull/4753


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


Re: [PR] SOLR-18372: remove FunctionQParser.parseMultipleSources accessors [solr]

Posted by "dsmiley (via GitHub)" <gi...@apache.org>.
dsmiley commented on PR #4753:
URL: https://github.com/apache/solr/pull/4753#issuecomment-5344474342

   The standard is 2 weekdays to allow peer review across timezones and busy people.  If you are fixing a pressing matter (failing CI) or a very trivial thing then I would not object.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


Re: [PR] SOLR-18372: remove FunctionQParser.parseMultipleSources accessors [solr]

Posted by "dsmiley (via GitHub)" <gi...@apache.org>.
dsmiley commented on code in PR #4753:
URL: https://github.com/apache/solr/pull/4753#discussion_r3826987862


##########
changelog/unreleased/SOLR-18372-remove-parsemultiplesources-accessors.yml:
##########


Review Comment:
   IMO not changelog worthy
   
   (of course thanks for your help but the number one purpose is to inform users of changes they might want to know about).



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


Re: [PR] SOLR-18372: remove FunctionQParser.parseMultipleSources accessors [solr]

Posted by "dsmiley (via GitHub)" <gi...@apache.org>.
dsmiley commented on PR #4753:
URL: https://github.com/apache/solr/pull/4753#issuecomment-5344507113

   And BTW... as I was involved in the underlying code, I'd have been an excellent choice to tag as a reviewer.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


Re: [PR] SOLR-18372: remove FunctionQParser.parseMultipleSources accessors [solr]

Posted by "epugh (via GitHub)" <gi...@apache.org>.
epugh commented on PR #4753:
URL: https://github.com/apache/solr/pull/4753#issuecomment-5342571338

   Just so I understand...   By removing the undocumented `multiple=true`, that is what lets us remove the deprecated code.  The rest still works.   And to make sure I udnerstand, you no longer needed the `multiple=true` anyway right?  Because that situation has been supported?   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


Re: [PR] SOLR-18372: remove FunctionQParser.parseMultipleSources accessors [solr]

Posted by "dsmiley (via GitHub)" <gi...@apache.org>.
dsmiley commented on PR #4753:
URL: https://github.com/apache/solr/pull/4753#issuecomment-5344447406

   Am I correct that this PR was posted 2 hours ago and merged 39 minutes ago?!  Hello!  This isn't how we do things at the ASF


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


Re: [PR] SOLR-18372: remove FunctionQParser.parseMultipleSources accessors [solr]

Posted by "epugh (via GitHub)" <gi...@apache.org>.
epugh commented on code in PR #4753:
URL: https://github.com/apache/solr/pull/4753#discussion_r3829464986


##########
changelog/unreleased/SOLR-18372-remove-parsemultiplesources-accessors.yml:
##########


Review Comment:
   i think we need to have a seperate thread to figure out changelog and much clearer guidelines....     This keeps popping up.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


Re: [PR] SOLR-18372: remove FunctionQParser.parseMultipleSources accessors [solr]

Posted by "serhiy-bzhezytskyy (via GitHub)" <gi...@apache.org>.
serhiy-bzhezytskyy commented on PR #4753:
URL: https://github.com/apache/solr/pull/4753#issuecomment-5342611654

   yes exactly, i did reverse engineering of requirements based on current tests and David's depreciation changes in 2025 (made it private) and then did refactoring to keep code/architecture clean.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org