Algolia를 만졌을 때 조사한 노트입니다.
Algolia
완벽한 관리 검색 서비스검색 데이터를 등록할 때의 형식
준비
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
}
데이터 가져오기
API
또는 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.
Configuration
->Searchable attributes
에서 검색 대상으로 하고자 하는atribute검색 정렬 기준 설정
검색
日付順
할 때 색인에 대한 조건 설정Configuration
->Ranking and sorting
에서 정렬 기준 설정Ranking
Ranking
= 검색 결과 우선순위일본어가 포함된 데이터를 검색할 때 해야 할 일
Configuration
->Language
Index Languages
및 Query Languages
에서 설정Japanese
기타
미리 등록
ISO 8601
된 날짜 문자열은Algolia에서sort가 되지 않으며, 대신 UnixTime
후의 값으로 변환됩니다.Reference
이 문제에 관하여(Algolia를 만졌을 때 조사한 노트입니다.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://zenn.dev/yorifuji/articles/algolia-first-step텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)