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

Hoss Man commented on SOLR-152:
-------------------------------

i haven't looked at the latest patch yet, but it occured to me on the train 
this morning that a better mechanism then matchall={true}|{false} would be 
altq={lucene-standard-syntax-query}

with the psuedoe code being...

   Query mainUserQuery = null;
   if ( params.get(Q) is not empty ) {
      mainUserQuery = dismaxParse( params.get(Q) )
  } else if ( params.get(ALTQ) is not empty ) {
      mainUserQuery = SolrQueryParser.parse(  params.get(ALTQ) );
  }
  if ( null == mainUserQuery) {
     throw NoQueryStringException;
  }


...that way people that want a MatchAllDocs fallback can put altq=*:* in their 
defaults or UIR ... but if they want it with a different boost (because they 
are using BF and BQ) they can do that, or if their index is heavily partitioned 
by doctype and they only want certain types of docs to be included in the set 
when no Q is specified they can use "altq=doctype:(product blog)"



> Dismax should not require 'q'
> -----------------------------
>
>                 Key: SOLR-152
>                 URL: https://issues.apache.org/jira/browse/SOLR-152
>             Project: Solr
>          Issue Type: Improvement
>          Components: search
>            Reporter: Ryan McKinley
>            Priority: Trivial
>         Attachments: SOLR-152-DismaxNoQ.patch, SOLR-152-DismaxNoQ.patch
>
>
> using fq=xxx should be sufficient to make a valid query
> see:
> http://www.nabble.com/dismax-without-q%3D-tf3198431.html#a8880594

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

Reply via email to