[
https://issues.apache.org/jira/browse/SOLR-3522?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hoss Man updated SOLR-3522:
---------------------------
Fix Version/s: 3.6.1
Assignee: Hoss Man
Summary: "literal" function can not be parsed (was: "literal"
function can not be parsed in 4x/trunk)
Looking into this, it seems that the literal function is completley broken in
3.6 as well -- raw literals work, just not the {{literal("foo")}} or
{{literal($foo})}}.
problem seems to be a simple mistake of calling "fp.getString()" (which is the
entire input string) instead of using fp.parseArg() ... i'll work on a test &
fix.
> "literal" function can not be parsed
> ------------------------------------
>
> Key: SOLR-3522
> URL: https://issues.apache.org/jira/browse/SOLR-3522
> Project: Solr
> Issue Type: Bug
> Reporter: Hoss Man
> Assignee: Hoss Man
> Fix For: 4.0, 3.6.1
>
>
> attempting to use the "literal" function in the fl param causes a parse
> error...
> Example queries with functions that works fine...
> {noformat}
> http://localhost:8983/solr/collection1/select?q=*:*&fl=foo:sum%284,5%29
> http://localhost:8983/solr/collection1/select?fl=score&q={!func}strdist%28%22foo%22,%22fo%22,edit%29
> {noformat}
> Examples using literal function that fails...
> {noformat}
> http://localhost:8983/solr/collection1/select?q=*:*&fl=foo:literal%28%22foo%22%29
> http://localhost:8983/solr/collection1/select?fl=score&q={!func}strdist%28%22foo%22,literal%28%22fo%22%29,edit%29
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]