Page History
...
Info |
---|
검색은 범위를 점점 좁혀가며 원하는 문서를 찾아가는 과정입니다.
|
검색 옵션(필터)
Code Block | ||
---|---|---|
| ||
namespace SearchApi.Models.Filter { public class Paging { public int page { get; set; } // 0 base public int limit { get; set; } } public class Sort { public string price { get; set; } public string viewCnt { get; set; } public string saleCnt { get; set; } } public class Filters { public int minPrice { get; set; } public int maxPrice { get; set; } public string category1 { get; set; } public string category2 { get; set; } public string category3 { get; set; } public string tag { get; set; } } public class SearchFilter { public Paging paging { get; set; } public Sort sort { get; set; } public Filters filters { get; set; } public string keyword { get; set; } } } |
...
- 기본요소 : 페이징처리및 정렬방법
- 확장요소 : 가격범위,카테고리 한정등 도메인에 특화된 필터
- 고급요소 : 반경검색및 형태소 분석이 반영된 키워드 검색등...
검색결과
Code Block | ||
---|---|---|
| ||
public class FilterCount { public string fieldName { get; set; } public string name { get; set; } public int count { get; set; } } public class Summary { public List<string> tags { get; set; } public List<FilterCount> filterCounts { get; set; } } public class SearchResult { public List<SearchGoods> list {get;set;} public int total { get; set; } public int size { get; set; } public Summary summary { get; set; } } |
...