Algolia를 만졌을 때 조사한 노트입니다.

5657 단어 Algoliatech
Algolia 완벽한 관리 검색 서비스
https://www.algolia.com/

검색 데이터를 등록할 때의 형식


준비JSON만 하면 돼요. 공식 게재의 예예요. 이런 느낌이에요.
{
  "title": "Blackberry and blueberry pie",
  "description": "A delicious pie recipe that combines blueberries and blackberries.",
  "image": "https://yourdomain.com/blackberry-blueberry-pie.jpg",
  "likes": 1128,
  "sales": 284,
  "categories": ["pie", "dessert", "sweet"],
  "gluten_free": false
}
https://www.algolia.com/doc/guides/sending-and-managing-data/prepare-your-data/#algolia-records

데이터 가져오기

  • API 또는 dashboard에서 등록 가능
  • https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/how-to/importing-with-the-api/
    https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/how-to/importing-from-the-dashboard/
    API는 다음 언어에서 사용할 수 있습니다.

    이른바 인덱스

  • 데이터와 각종 설정(검색 조건 등)을 포함하는 데이터 집합의 단위
  • 인덱스 등록 데이터에 대한 검색 조건과 정렬 조건 설정 등
  • 인덱스 복사 가능
  • New->Replica에서 인덱스 사본 만들기
  • 新着順人気順 등 검색 결과의 획득은 각자의 정렬 조건을 적용한 색인을 준비하여 실현할 수 있다
  • 찾기 객체의 데이터(속성)를 명시적으로 지정합니다.


    Algolia lets you define in which specific attributes to search, using the searchableAttributes parameter. By default, the engine searches within the entire record, but you want to adjust this: this better for performance, and allows you to remove noise.
    https://www.algolia.com/doc/guides/sending-and-managing-data/prepare-your-data/in-depth/prepare-data-in-depth/#data-for-searching
  • 기본적으로 모든 데이터가 검색 대상이 되어 소음이 발생
  • Configuration->Searchable attributes에서 검색 대상으로 하고자 하는atribute
  • 추가

    검색 정렬 기준 설정


    검색日付順할 때 색인에 대한 조건 설정
  • Configuration->Ranking and sorting에서 정렬 기준 설정
  • https://blog.tatsuroh.com/2020-12-21/algolia-virtual-replica-explained

    Ranking

    Ranking = 검색 결과 우선순위
    https://blog.tatsuroh.com/2020-12-02/algolia-ranking-explained

    일본어가 포함된 데이터를 검색할 때 해야 할 일

  • Configuration->LanguageIndex LanguagesQuery Languages에서 설정Japanese
  • https://blog.tatsuroh.com/2020-12-21/algolia-searching-ja
    https://qiita.com/makoto-soracom/items/5b1b80d9cd6ea262b8aa

    기타


  • 미리 등록ISO 8601된 날짜 문자열은Algolia에서sort가 되지 않으며, 대신 UnixTime후의 값으로 변환됩니다.
  • https://yamatooo.blog/entry/2021/03/30/083000
  • 좋은 웹페이지 즐겨찾기