Is there a simple way to access the scores assigned by the highlighter to the returned snippets?
Looking in the source code this seems impossible because the scores of the snippets are not returned although they are used for ranking the snippets to select the best ones. Am I missing something? Or do you know the reason for not returning these scores?
This isn't exposed right now, no. This'd probably be possible with some of the highlighters and not others. Scores would be super inconsistent across highlighters too but they could be used for comparison between snippets on the same document.
You could certainly open an issue to request the feature.
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.