> > The problem with what you > provided is > > it is boosting ALL documents whether > > the field is empty or not.... > > Then all of your fields are non-empty? What is the type of > your field?
How do you feed your documents to solr? My be you are indexing empty string? Is your field indexed="true"? http://wiki.apache.org/solr/SolrQuerySyntax#Differences_From_Lucene_Query_Parser "-field:[* TO *] finds all documents without a value for field" Another approach is to use default="SOMETHING" in your field definition. (schema.xml) <field name="id" type="int" indexed="true" stored="true" default="0" /> Then you can use field:SOMETHING to retrieve empty fields. +*:* -field:SOMETHING retrieves non-empty documents.