my case is field aliasing of edismax. consider this request, which sent to the example configuration:
http://localhost:8983/solr/collection1/select?defType=edismax&q.myalias.qf=text&q=myalias:1234&facet=true&facet.query=myalias:1234 the result is: <lst name="error"> <str name="msg">undefined field myalias</str> <int name="code">400</int> </lst> when disabling the facet, the query works perfectly. I understand that either defType parameter or q.myalias.qf parameters, do not affect the facet query (which always runs with lucene parser??) when adding {!edismax} the the facet query, no error is thrown, but I can't determine whether the alias is OK or edismax "recovery mode" is too much "nice". debugQuery does not show the parsedQuery for facet query. Anyway, there is a problem here. On Tue, Dec 10, 2013 at 3:09 AM, Chris Hostetter <hossman_luc...@fucit.org>wrote: > : It seems that a facet query does not use the global query parameters (for > : example, field aliasing for edismax parser). > > can you please give a specific example of a query that isn't working for > you? > > Using this query against the examle data, things work exactly as i would > expect showing that the QParsers used for facet.queries inherit the > global params (unless overridden by local params of course)... > > > http://localhost:8983/solr/select?q=*:*&wt=json&indent=true&&facet=true&facet.query={!dismax}solr+bogus&facet.query={!dismax%20mm=1}solr+bogus&facet.query={!dismax%20mm=1%20qf=%27foo_t%27}solr+bogus&rows=0&mm=2&qf=name > { > "responseHeader":{ > "status":0, > "QTime":2, > "params":{ > "mm":"2", > "facet":"true", > "indent":"true", > "facet.query":["{!dismax}solr bogus", > "{!dismax mm=1}solr bogus", > "{!dismax mm=1 qf='foo_t'}solr bogus"], > "q":"*:*", > "qf":"name", > "wt":"json", > "rows":"0"}}, > "response":{"numFound":32,"start":0,"docs":[] > }, > "facet_counts":{ > "facet_queries":{ > "{!dismax}solr bogus":0, > "{!dismax mm=1}solr bogus":1, > "{!dismax mm=1 qf='foo_t'}solr bogus":0}, > "facet_fields":{}, > "facet_dates":{}, > "facet_ranges":{}}} > > > > > > > -Hoss > http://www.lucidworks.com/ >