본문 바로가기
개발/ALGOLIA

알고리아 Managing Results(3-22)

by dev_caleb 2022. 3. 4.
728x90

Relevant Sorting(관련성 소팅)

https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/relevant-sort/

 

Relevant sorting | Algolia

Learn about the relevant sorting feature and how you can use it to provide more relevant results for users.

www.algolia.com

 

Use relevant sorting to only show the most relevant results for a user’s search instead of displaying all the records (exhaustive sorting).

모든 레코드를 표시하는(전체 정렬) 대신 관련 정렬을 사용하여 사용자의 검색에 대해 가장 관련성이 높은 결과만 표시합니다.

Relevant sorting is only available on Premium plans.

관련성 소팅은 프리미엄 plan에서만 가능합니다.

Effect on ranking formula

Algolia’s ranking formula isn’t turned off when you sort by an attribute. Instead, the relevant sorting algorithm selects results as follows:

  1. Selects results matching the user’s query by using the primary index’s ranking formula.
  2. Selects only the most relevant results. This a threshold set by the relevancyStrictnesssetting. With ‘relevancyStrictness`, you instruct the engine to only return results with that relevancy score or better. The relevancy score for each result is computed at query time by comparing all the hits to the best hit of the search (a score of 100) and ranges from 100 to 0.
  3. Sorts the selected results based on the virtual replica’s customRanking sorting criteria.
  4. Returns the relevant results.

속성을 기준으로 정렬할 때 알골리아의 순위 공식이 해제되지 않습니다. 대신 관련 정렬 알고리즘은 다음과 같이 결과를 선택합니다.
1. 주 인덱스의 순위 공식을 사용하여 사용자의 쿼리와 일치하는 결과를 선택합니다.
2. 가장 관련성이 높은 결과만 선택합니다. 이것은 RelationancyStrictnessSetting에 의해 설정된 임계값입니다. '관련성 엄격성'을 사용하면 해당 관련성 점수 이상의 결과만 반환하도록 엔진을 지시합니다. 각 결과의 관련 점수는 쿼리 시간에 검색의 최고 히트(100점)와 비교하여 계산되며 범위는 100 ~ 0입니다.
3. 가상 복제본의 customParting 정렬 기준에 따라 선택한 결과를 정렬합니다.
4. 관련 결과를 반환합니다.

If multiple results have the same value for a sorting attribute, tie-breaking proceeds as usual on the other defined sorting attributes. For example, suppose you’ve sorted by price and then by popularity. If a query returns three results that cost $99, the engine will then order them by their popularity score.

여러 결과의 정렬 특성 값이 동일한 경우, 정의된 다른 정렬 특성에서 일반적으로  tie-breaking proceeds이 진행됩니다. 예를 들어, 가격을 기준으로 분류한 다음 인기에 따라 분류했다고 가정해 보자. 쿼리가 $99에 해당하는 3개의 결과를 반환하면 엔진은 인기 점수에 따라 결과를 정렬합니다.

Relevant sorting considerations(관련 정렬 고려 사항)

Relevant sorting interacts with other features in ways you might not expect.(관련 정렬은 예상하지 못한 방식으로 다른 기능과 상호 작용합니다.)

Caution: other re-ranking features can affect results(주의: 다른 순위 재조정 기능이 결과에 영향을 줄 수 있습니다.)

Other re-ranking features such as Rules apply after relevant sorting and will modify sort order. For example, if Personalization promotes expensive items for a particular user based on their past actions, that user might see expensive items at the top of the results, even if they’ve chosen to relevant sort from lowest to highest price.

To ensure predictable behavior, don’t use the following features or parameters with relevant sorting:

규칙과 같은 다른 재순위 기능은 관련 정렬 후에 적용되며 정렬 순서를 수정합니다. 예를 들어, 개인 설정이 과거의 작업을 기반으로 특정 사용자에게 값비싼 항목을 홍보하는 경우 해당 사용자는 관련 항목을 최저 가격에서 최고 가격까지 정렬하도록 선택했더라도 결과 맨 위에 비싼 항목을 볼 수 있습니다.
예측 가능한 동작을 보장하려면 다음 기능 또는 매개 변수를 관련 정렬과 함께 사용하지 마십시오.

 

Facets count(면 개수)

When relevant sorting is enabled, the engine still computes facets on all results, not just those defined by the relevant sort. A UI banner detailing the behavior of the relevant sort may help manage the user’s expectations.


관련 정렬이 활성화된 경우에도 엔진은 관련 정렬에 의해 정의된 결과뿐만 아니라 모든 결과에 대한 패싯을 계산합니다. 관련 정렬의 동작을 자세히 설명하는 UI 배너는 사용자의 기대를 관리하는 데 도움이 될 수 있습니다.

Enabling relevant sorting reduces the number of results(관련 정렬을 사용하면 결과 수가 줄어듭니다.)

Essentially, that’s the point: it gives users more relevant results, not all results (exhaustive sorting).

For example, you search for “chromebook” on an ecommerce site and get Chromebook computers at the top of your results (so far, so good). However, if you then sort by ascending price (because you just want a cheap computer), the top (cheapest) listed items might be “Chromebook power adapters”. Whereas with a relevant sort, you would get fewer results but only see relevant items (computers).

Using a virtual replica even with relevancyStrictness set to 0 can’t mimic the exhaustive sorting of a standard replica because it doesn’t use the same algorithm. Be aware that a virtual replica:

  • Doesn’t duplicate the data. It sorts at query time.
  • Can only retrieve a maximum of 20k results, so there’s no guarantee that it will fetch the “deepest” hits.

본질적으로 그것이 요점이다: 사용자에게 모든 결과(전면적인 정렬)가 아닌 더 관련 있는 결과를 제공한다.
예를 들어, 전자 상거래 사이트에서 "크롬북"을 검색하고 결과 상단에 Chromebook 컴퓨터가 표시됩니다(지금까지). 그러나 저렴한 컴퓨터를 원하기 때문에 오름차순 가격을 기준으로 정렬할 경우 최상위(저렴한) 항목이 "Chromebook 전원 어댑터"일 수 있습니다. 관련 정렬을 사용하면 결과만 적게 얻을 수 있지만 관련 항목(컴퓨터)만 볼 수 있습니다.
RelabencyStrictness가 0으로 설정된 경우에도 가상 복제본을 사용하면 동일한 알고리즘을 사용하지 않으므로 표준 복제본의 전체 정렬을 모방할 수 없습니다. 가상 복제본은 다음과 같습니다.
-데이터가 중복되지 않습니다. 쿼리 시간에 정렬됩니다.
-최대 20k개의 결과만 검색할 수 있으므로 "가장 깊은" 히트를 가져올 것이라는 보장은 없습니다.

 

How to configure relevant sorting(관련 정렬 구성 방법)

Step one - Create a virtual replica index(가상 복제본 색인 만들기)

If you want to configure relevant sorting, you first need to create a virtual replica index for each attribute you want to sort by.

Virtual replicas provide an alternative “view” of the primary index. Virtual replicas reuse the primary’s ranking formula to return relevant results: for that reason, you can’t change the rankingon virtual replicas but can use customRanking to define the sort criteria.

관련 정렬을 구성하려면 먼저 정렬 기준으로 사용할 각 속성에 대한 가상 복제본 색인을 작성해야 합니다.
가상 복제본은 기본 색인의 대체 "view"를 제공합니다. 가상 복제본은 기본 복제본의 순위 공식을 재사용하여 관련 결과를 반환합니다. 따라서 가상 복제본의 순위를 변경할 수 없지만 customParting을 사용하여 정렬 기준을 정의할 수 있습니다.

 

Step two - Connect your UI to your index(UI를 색인에 연결합니다.)

Virtual replica indices manage the back end of sorting, but you still need to implement the front end. You can do this with either custom logic or InstantSearch. If you’re using InstantSearch, you should use the sortBy UI widget.

가상 복제본 색인은 정렬의 백엔드를 관리하지만 프런트엔드를 구현해야 합니다. 이 작업은 사용자 정의 논리 또는 InstantSearch를 사용하여 수행할 수 있습니다. InstantSearch를 사용하는 경우 UI별 정렬 위젯을 사용해야 합니다.

To ensure the user understands how relevant sort works and ensure that they can control their experience:

  • Indicate to the user that sorting removed some results
  • Offer them the option of displaying more.

You can do this with the relevantSort UI widget.

 

사용자가 관련 정렬의 작동 방식을 이해하고 사용자의 경험을 제어할 수 있도록 하기 위해:
- 정렬이 일부 결과를 제거했음을 사용자에게 나타냅니다.
- 그들에게 더 많이 표시할 수 있는 옵션을 제공합니다.
이 작업은 관련 정렬 UI 위젯을 사용하여 수행할 수 있습니다.

 

728x90

'개발 > ALGOLIA' 카테고리의 다른 글

알고리아 Managing Results(3-24)  (0) 2022.03.04
알고리아 Managing Results(3-23)  (0) 2022.03.04
알고리아 Managing Results(3-21)  (0) 2022.03.04
알고리아 Managing Results(3-20)  (0) 2022.03.04
알고리아 Managing Results(3-19)  (0) 2022.03.04