Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Kathleen DeRusso <[email protected]>
  • Loading branch information
afoucret and kderusso authored Mar 11, 2024
1 parent 6b479ff commit e78bf59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Feature extractors are defined using templated queries. https://eland.readthedoc
from eland.ml.ltr import QueryFeatureExtractor
feature_extractors=[
# We want to use the score of the match query for the title field as a features:
# We want to use the score of the match query for the title field as a feature:
QueryFeatureExtractor(
feature_name="title_bm25",
query={"match": {"title": "{{query}}"}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ image::images/search/learning-to-rank-overview.png[Learning To Rank overview,ali

In addition to the list of documents to sort, the LTR function also requires a
search context. Typically, this search context includes at least the search
terms provided by the user (text_query in the example above).
terms provided by the user (`text_query` in the example above).
The search context can also provide additional information used in the ranking mode.
This could be information about the user doing the search (like demographic data, geolocation, or age); about the query (like query length); or document in the context of the query (like score for the title field).
This could be information about the user doing the search (such as demographic data, geolocation, or age); about the query (such as query length); or document in the context of the query (such as score for the title field).

[discrete]
[[learning-to-rank-judgement-list]]
Expand Down

0 comments on commit e78bf59

Please sign in to comment.