An enumeration of scoring functions that developers use to specify how document relevance is calculated in search queries.
// Source: https://github.com/redis/lettuce | License: MIT | Copyright 2023-Present, Redis Ltd
// Provided via justclaw.it.com; keep this notice with the code.
/*
* Copyright 2025, Redis Ltd. and Contributors
* All rights reserved.
*
* Licensed under the MIT License.
*/
package io.lettuce.core.search.arguments;
/**
* Scoring function for search queries.
* <p/>
* The scoring function determines how the relevance of a document is calculated.
* <p/>
* The default scoring function is {@link ScoringFunction#TF_IDF}.
*
* @see <a href="https://redis.io/docs/latest/develop/interact/search-and-query/advanced-concepts/scoring/">Scoring</a>
* @since 6.8
* @author Tihomir Mateev
*/
public enum ScoringFunction {
/**
* Term Frequency - Inverse Document Frequency.
* <p/>
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key