It doesn't matter the field type, you are in a query context, so you will get a score for the documents returned by this query. The filter context implies a filter clause.
The scoring formula will give a score to a field even if it's a keyword. The formula based on the TF/IDF takes in account multiple parameters. (ex. : the number of documents you have on your index.)
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.