Subversion Repositories SmartDukaan

Rev

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

Rev 6942 Rev 6949
Line 224... Line 224...
224
 
224
 
225
	public Map<String, String> getSnippets() throws Exception {
225
	public Map<String, String> getSnippets() throws Exception {
226
        if(results != null){
226
        if(results != null){
227
            snippets = new HashMap<String, String>();   
227
            snippets = new HashMap<String, String>();   
228
            for(String docId: results){
228
            for(String docId: results){
229
                String snippet = (String)SnippetCacheWrapper.getSnippet(CacheKeys.SEARCH_SNIPPET_CACHE_KEY, docId, sourceId);
229
                String snippet = (String)SnippetCacheWrapper.getSnippet(CacheKeys.CATEGORY_SNIPPET_CACHE_KEY, docId, sourceId);
230
                if (snippet != null) {
230
                if (snippet != null) {
231
                    snippets.put(docId, snippet);
231
                    snippets.put(docId, snippet);
232
                }
232
                }
233
            }
233
            }
234
        }
234
        }