--- On Tue, 3/15/11, mrw <mikerobertsw...@gmail.com> wrote:
> From: mrw <mikerobertsw...@gmail.com> > Subject: Dismax: field not returned unless in sort clause? > To: solr-user@lucene.apache.org > Date: Tuesday, March 15, 2011, 3:21 PM > We have a "D" field (string, indexed, > stored, not required) that is returned > * when we search with the standard request handler > * when we search with dismax request handler _and the field > is specified in > the sort parameter_ > > but is not returned when using the dismax handler and the > field is not > specified in the sort param. > > IOW, if I do the following query (no sort param), I get all > the expected > results, but the D field never comes back... > > &q=&q.alt=*:*&defType=dismax&tie=0.1&mm=1&qf=A,B,C&start=0&rows=300&fl=D > > ...but if I add "D" to the sort param, the D field comes > back on every > single record > > &q=&q.alt=*:*&defType=dismax&tie=0.1&mm=1&qf=A,B,C&start=0&rows=300&fl=D&sort=D%20asc > &q=&q.alt=*:*&defType=dismax&tie=0.1&mm=1&qf=A,B,C&start=0&rows=300&fl=D&sort=D%20desc > > If I omit the fl param, I see that all of our other fields > appear to be > returned on every result without any need to specify them > in the sort param. > > Obviously, I cannot hard-code the sort order around the D > field. :) Can you use one space in qf parameter while separating field names? q.alt=*:*&defType=dismax&tie=0.1&mm=1&qf=A B C&start=0&rows=300&fl=D