I have a SOLR document which looks like this:
<doc>
<float name="score">1.7004467</float>
<str name="name">Love</str>
<str name="id">15801637</str>
<int name="itemCount">3</int>
<date name="last_modified">2012-08-10T11:04:28Z</date>
<str name="emailaddress"/>
</doc>
<doc>
<str name="name">Love</str>
<str name="id">158015757</str>
<int name="itemCount">3</int>
<date name="last_modified">2012-08-10T11:04:28Z</date>
<str name="emailaddress">xxx@yy.com</str>
</doc>
I want to write a query that matches documents by name, but boost records with emailaddress
to appear on top, and without emailaddress
toward the bottom.
I don't want to sort by email address. I prefer using dismax (i am presenting a simplified problem here).