No, not setting those options in the query or schema.xml file. I'll try what you said, however.
Thanks Chris Hostetter-3 wrote: > > : 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. > > are you using one of the "sortMissing" options on D or it's fieldType? > > I'm guessing you have sortMissingLast="true" for D, so anytime you sort on > it the docs that do have a value appear first. but when you don't sort on > it, other factors probably lead docs that don't have a value for the D > field to appear first -- solr doesn't include fields in docs that don't > have any value for that field. > > if my guess is correct, adding "fq=D:[* TO *] to any of your queries will > cause the total number of results to shrink, but the first page of results > for your requests that don't sort on D will look exactly the same. > > the LUkeRequestHandler will help you see how many docs in your index don't > have any values indexed in the "D" field. > > > -Hoss > -- View this message in context: http://lucene.472066.n3.nabble.com/Dismax-field-not-returned-unless-in-sort-clause-tp2681447p2688039.html Sent from the Solr - User mailing list archive at Nabble.com.