Now I also what to be able to score these documents based on a relevant field such as "businessname", but at the same time, don't filter out the documents that don't contain the name, just give them a lower score.
I thought so, but the two results for example that do come back have the same score. If I leave out the match all clause, they both have a score of 0. If I include it, they have a score of .25. One being "Oracle" another being "McDonalds". The value i'm searching with is Oracle.
I agree with Mike you should remove the match_all which only adds a fixed constant to the score of all docs. Also if your businessname field is analyzed, you should use a match query rather than a term query.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.