Subversion Repositories SmartDukaan

Rev

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

Rev 3561 Rev 3607
Line 62... Line 62...
62
 
62
 
63
	private static String getCategorySnippet(String docId, long sourceId)
63
	private static String getCategorySnippet(String docId, long sourceId)
64
    {
64
    {
65
        String snippet = categorySnippetCache.get(docId);
65
        String snippet = categorySnippetCache.get(docId);
66
        if (snippet == null) {
66
        if (snippet == null) {
67
        	snippet = ContentServingService.getSnippet(SnippetType.SEARCH_SNIPPET, docId, sourceId);
67
        	snippet = ContentServingService.getSnippet(SnippetType.CATEGORY_SNIPPET, docId, sourceId);
68
            if (sourceId == -1 && snippet != null) {
68
            if (sourceId == -1 && snippet != null) {
69
            	categorySnippetCache.put(docId, snippet);
69
            	categorySnippetCache.put(docId, snippet);
70
            }
70
            }
71
        }
71
        }
72
        else {
72
        else {