You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Hoss Man (JIRA)" <ji...@apache.org> on 2007/05/08 02:05:15 UTC

[jira] Commented: (SOLR-109) variable substitution in lucene query params

    [ https://issues.apache.org/jira/browse/SOLR-109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12494163 ] 

Hoss Man commented on SOLR-109:
-------------------------------

> The only part that I did not understood is the
> handlers part. 

> I did a grep for SolrQueryParser but could not find an example where I can call
> SolrQueryParser.setParams(SolrParams params) to prepare the substitution
> (setSubstitutionSolrParam(String queryText){}).

i think StandardRequestHandler currently uses a static parseQuery method from QueryParsing ... i've never really been fond of that, it should be replaced with a factory method that returns a SolrQueryParser, then the handler could set whatever options it wants.

there's definitely an instance of SolrQueryParser in DisMax handler ... used to parse the boost queries and optional alt.q.

> variable substitution in lucene query params
> --------------------------------------------
>
>                 Key: SOLR-109
>                 URL: https://issues.apache.org/jira/browse/SOLR-109
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Thorsten Scherler
>         Attachments: SOLR-109.diff, SOLR-109.diff
>
>
> Allowing variable substitution in the lucene query params seems pretty slick 
> ... a more general solution might be to modify the SolrQueryParser
> directly to have a new "void setParamVariables(SolrParams p)" method.
> http://marc.theaimsgroup.com/?t=116712376400001&r=1&w=2

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.