Subversion Repositories SmartDukaan

Rev

Rev 7255 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7255 Rev 7263
Line 2... Line 2...
2
 
2
 
3
import in.shop2020.datalogger.EventType;
3
import in.shop2020.datalogger.EventType;
4
import in.shop2020.model.v1.catalog.Category;
4
import in.shop2020.model.v1.catalog.Category;
5
//import in.shop2020.serving.cache.EhcacheWrapper.CacheKeys;
5
//import in.shop2020.serving.cache.EhcacheWrapper.CacheKeys;
6
//import in.shop2020.serving.cache.SnippetCacheWrapper;
6
//import in.shop2020.serving.cache.SnippetCacheWrapper;
-
 
7
import in.shop2020.serving.cache.EhcacheWrapper.CacheKeys;
-
 
8
import in.shop2020.serving.cache.SnippetCacheWrapper;
7
import in.shop2020.serving.service.SearchService;
9
import in.shop2020.serving.service.SearchService;
8
import in.shop2020.serving.utils.Utils;
10
import in.shop2020.serving.utils.Utils;
9
import in.shop2020.utils.CategoryManager;
11
import in.shop2020.utils.CategoryManager;
10
import in.shop2020.utils.DataLogger;
12
import in.shop2020.utils.DataLogger;
11
 
13
 
Line 210... Line 212...
210
            this.facets.put(Utils.FACET_LABEL_MAP.get(filtrableFacet), values);
212
            this.facets.put(Utils.FACET_LABEL_MAP.get(filtrableFacet), values);
211
        }
213
        }
212
    }
214
    }
213
 
215
 
214
 
216
 
215
//    public Map<String, String> getSnippets() throws Exception {
217
    public Map<String, String> getSnippets() throws Exception {
216
//        if(results != null){
218
        if(results != null){
217
//            snippets = new HashMap<String, String>();   
219
            snippets = new HashMap<String, String>();   
218
//            for(String docId: results){
220
            for(String docId: results){
219
//                String snippet = (String)SnippetCacheWrapper.getSnippet(CacheKeys.CATEGORY_SNIPPET_CACHE_KEY, docId, sourceId);
221
                String snippet = (String)SnippetCacheWrapper.getSnippet(CacheKeys.CATEGORY_SNIPPET_CACHE_KEY, docId, sourceId);
220
//                if (snippet != null) {
222
                if (snippet != null) {
221
//                    snippets.put(docId, snippet);
223
                    snippets.put(docId, snippet);
222
//                }
224
                }
223
//            }
225
            }
224
//        }
226
        }
225
//        return snippets;
227
        return snippets;
226
//    }
228
    }
227
    
229
    
228
    /**
230
    /**
229
     * 
231
     * 
230
     * @return
232
     * @return
231
     */
233
     */