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.  :)

Any ideas?   


Thanks!


--
View this message in context: 
http://lucene.472066.n3.nabble.com/Dismax-field-not-returned-unless-in-sort-clause-tp2681447p2681447.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to