You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »


  • 검색필터 : 수많은 아이템중 필요한 아이템 컬렉션으로 줄이기 위한 검색 옵션
  • 검색결과 : 검색 필터에의해 반환된 아이템 컬렉션

검색 옵션(필터)

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; }
    }
}

페이징 처리를 포함하여, 정렬조건 , 가격순/인기순 , 태깅검색, 카테고리 검색등의 기능을 사용할수 있습니다.

검색결과

    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; }
    }

노출을 위한 기본 상품 정보(SearchGoods) 컬렉션을 포함하여 

페이징 처리및 결과내 재검색을 위한 몇가지 집계 정보도 같이 내려주게됩니다.



  • No labels