Subversion Repositories SmartDukaan

Rev

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

Rev 3294 Rev 3561
Line 22... Line 22...
22
 * @author Rajveer
22
 * @author Rajveer
23
 *
23
 *
24
 */
24
 */
25
@SuppressWarnings("serial")
25
@SuppressWarnings("serial")
26
public class GlossaryController extends BaseController {
26
public class GlossaryController extends BaseController {
27
	private static Logger logger = Logger.getLogger(Class.class);
27
	private static Logger logger = Logger.getLogger(GlossaryController.class);
28
	
28
	
29
	private String id;
29
	private String id;
30
	public GlossaryController(){
30
	public GlossaryController(){
31
		super();
31
		super();
32
	}
32
	}
Line 63... Line 63...
63
    public Map<String, String> getItems(){
63
    public Map<String, String> getItems(){
64
    	Map<String, String> snippets = new HashMap<String, String>();
64
    	Map<String, String> snippets = new HashMap<String, String>();
65
    	if(id==null){
65
    	if(id==null){
66
    		return snippets;
66
    		return snippets;
67
    	}
67
    	}
68
    	SolrSearchService search = new SolrSearchService(id, null, null, 0, 20, null, null, Utils.MOBILE_PHONES_CATEGORY, null);
68
    	SolrSearchService search = new SolrSearchService(id, null, null, 0, 20, null, null, Utils.MOBILE_PHONES_CATEGORY, null, sourceId);
69
    	long[] items = search.getResultEntityIDs();
69
    	long[] items = search.getResultEntityIDs();
70
    	if(items != null){
70
    	if(items != null){
71
    		for(long item: items){
71
    		for(long item: items){
72
    			try{
72
    			try{
73
    	    	    JSONObject productPropertiesInJson = new JSONObject(FileUtils.read(Utils.EXPORT_ENTITIES_PATH + item + File.separator + "ProductPropertiesSnippet.html"));
73
    	    	    JSONObject productPropertiesInJson = new JSONObject(FileUtils.read(Utils.EXPORT_ENTITIES_PATH + item + File.separator + "ProductPropertiesSnippet.html"));