• data workflow

    1. 데이터베이스나 static 파일같은 데이터 source에서 데이터를 fetch한다.

      Untitled

    2. 해당 데이터를 JSON records로 변환한다.

      • 예시 (An Algolia record (or object) is a set of key-value pairs called attributes.)
    3. Algolia에 해당 레코드를 보낸다. → indexing ⇒ python manage.py algolia_reindex

      • Algolia index : 데이터 베이스의 테이블과 동일하다. 단지 검색에 특화됐을 뿐.
  • attributes for searching

    Untitled

    • 모든 attribute는 검색 가능한 게 디폴트. 하지만 searchable attributes  feature로 선별할 수 있음.

      
      # places/index.py
      settings = {       
          'searchableAttributes' : ["place_name", "category", "palce_address", "place_number"]
      }
      
  • Algolia’s default ranking formula 작동 이후 Custom ranking이 작동함.

  • 특정 metric이 너무 정확하면 다른 metric이 작용하지 못하므로 정확도를 줄이는 게 좋다.

  • Simplifying your records