본문 바로가기
개발/ALGOLIA

알고리아 Managing Results(3-40)

by dev_caleb 2022. 4. 28.
728x90

Rules Overview

https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/

 

Rules overview | Algolia

How to use Algolia's Rules to create flexible and dynamic search results.

www.algolia.com

 

Search needs to be flexible. When you hold a promotion, you shouldn’t need to reconfigure search settings or modify individual records. If one of your products isn’t appearing where you want it to in your search results, you should be able to reposition it quickly.

Rules let you make precise and (if desired) temporary modifications to your search results.

Relevance and index settings provide the general structure for your search results. Rules let you optimize and dynamically adjust that structure.

 

 

검색은 유연해야 합니다. 프로모션을 수행할 때 검색 설정을 재구성하거나 개별 레코드를 수정할 필요가 없습니다. 검색 결과에서 원하는 위치에 제품 중 하나가 표시되지 않으면 빠르게 위치를 변경할 수 있습니다.
규칙을 사용하면 검색 결과를 정확하고(원하는 경우) 임시로 수정할 수 있습니다.
관련성 및 인덱스 설정은 검색 결과에 대한 일반적인 구조를 제공합니다. 규칙을 통해 해당 구조를 최적화하고 동적으로 조정할 수 있습니다.

 

Rules don’t replace a good index configuration. Make sure you adjust your general relevance before adding Rules.

규칙은 올바른 인덱스 구성을 대체하지 않습니다. 규칙을 추가하기 전에 일반 관련성을 조정해야 합니다.

What are Rules used for? 규칙은 무엇에 사용됩니까?

Rules let you make precise, predetermined changes to your search results. For example, you can pin or hide items, boost or bury categories, or filter results based on the query. You can also enable Rules for a fixed time, making Rules a great way of implementing sales or promotions.

 

규칙을 사용하면 검색 결과를 정확하고 미리 결정된 대로 변경할 수 있습니다. 예를 들어 조회를 기준으로 항목을 고정 또는 숨기거나, 범주를 부스트 또는 매립하거나, 결과를 필터링할 수 있습니다. 또한 정해진 시간 동안 규칙을 활성화하여 판매 또는 프로모션을 구현하는 데 규칙을 사용할 수 있습니다.

There is a limit of 10K Rules per index. 인덱스당 10K 규칙 제한이 있습니다.

 

Rules are typically used either for merchandising or fine-tuning your search and relevance.

 

규칙은 일반적으로 검색 및 관련성을 판매하거나 미세 조정하는 데 사용됩니다.

To see some typical applications for Rules, check out the sections on merchandising with Rules and detecting user intent with Rules.

 

Structure of a Rule  규칙 구조

Rules consist of three parts: conditions, consequences, and a validity period. Of these three parts, only the consequence is required. If one of a Rule’s conditions is met, the engine applies its consequences. If a Rule has no conditions, the engine always applies its consequences.

규칙은 조건, 결과 및 유효 기간의 세 부분으로 구성됩니다. 이 세 부분 중 결과만 있으면 됩니다. 규칙의 조건 중 하나가 충족되면 엔진은 그 결과를 적용한다. 규칙에 조건이 없는 경우 엔진은 항상 결과를 적용합니다.

 

 

Rules target specific indices, but can be copied to replicas or other indices.

규칙은 특정 인덱스를 대상으로 하지만 복제본 또는 다른 인덱스에 복사할 수 있습니다.

 

Conditions 조건

A Rule can have up to 25 conditions. If a Rule has multiple conditions, it gets activated as soon as one of its conditions is met. In other words, conditions have an or relationship to one another. Conditions can contain a pattern string, anchoring, a context, and/or filters, though none are required.

To decide if a Rule’s consequences should be applied, the engine:

 

규칙은 최대 25개의 조건을 가질 수 있습니다. 규칙에 여러 조건이 있는 경우 해당 조건 중 하나가 충족되는 즉시 활성화됩니다. 즉, 조건은 서로 또는 관계를 갖는다. 조건은 패턴 문자열, 고정, 컨텍스트 및/또는 필터를 포함할 수 있지만, 필요하지 않습니다.
규칙의 결과를 적용해야 하는지 여부를 결정하려면 엔진을 다음과 같이 한다.

 

  • Compares the condition’s pattern string with a user’s query.
  • Bases the comparison on the condition’s anchoring. Values for anchoring are: is, contains, starts with, and ends with. The anchoring determines what part of the query the pattern must match: all of it, part of it, the beginning, or the end.
  • If you enable alternatives in the condition, the user’s query can match the condition’s pattern, even if the query is a plural, synonym, or typo of the pattern. If you don’t enable alternatives, the user’s query must exactly match the condition’s pattern string and anchoring.
  • It compares the condition’s filters to the filters applied to the search.
  • It compares the condition’s context to the search’s ruleContexts.

If a single condition includes a pattern string, filters, and a context, a search must match all three for the condition to be met. If you create three different conditions for each, only one must be met for the engine to activate the Rule.

If a condition has a pattern string that set to an empty string with is anchoring, the engine applies the Rule whenever the user hasn’t yet entered a query.

If a condition has neither pattern, anchoring, context, or filters, it’s a conditionless Rule, and the engine applies it to every search.

These sections further describe the different types of conditions: query pattern, filters, context, and conditionless Rules.

 

 

 

 

 

 

728x90

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

firebase function algolia  (0) 2022.10.14
algolia 써보고 느낀점  (0) 2022.08.07
알고리아 Managing Results(3-39)  (0) 2022.04.28
알고리아 Managing Results(3-38)  (0) 2022.04.28
알고리아 Managing Results(3-37)  (0) 2022.04.27