Ryan Josal created SOLR-7152:
--------------------------------

             Summary: Cannot override default rq with no rankquery
                 Key: SOLR-7152
                 URL: https://issues.apache.org/jira/browse/SOLR-7152
             Project: Solr
          Issue Type: Bug
    Affects Versions: 4.10.2
            Reporter: Ryan Josal
            Priority: Minor


In your update handler, if you put a default parameter for rq=, you cannot 
override it with no rankquery.  You can try passing rq=, which will override 
the default value to an empty string, but the QueryComponent will complain that 
it isn't a valid RankQuery.  Looks like a simple fix to not only check for null 
but also isEmpty.

Possible workaround for now:
Check for empty rq string in the prepare method of an earlier search component 
and remove it.  This isn't a workable solution though if your rankquery param 
uses a {!switch ...} that can set to empty in a default case for example.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to