Subversion Repositories SmartDukaan

Rev

Rev 6998 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6998 Rev 12110
Line 79... Line 79...
79
    public Map<String, String> getItems(){
79
    public Map<String, String> getItems(){
80
    	Map<String, String> snippets = new HashMap<String, String>();
80
    	Map<String, String> snippets = new HashMap<String, String>();
81
    	if(id==null){
81
    	if(id==null){
82
    		return snippets;
82
    		return snippets;
83
    	}
83
    	}
84
    	SolrSearchService search = new SolrSearchService(id + "&fq=F_50010:\"Mobile Phones\"", null, 0, 20, null, null, null, sourceId);
84
    	SolrSearchService search = new SolrSearchService(id + "&fq=F_50010:\"Mobile Phones\"", null, 0, 20, null, null, null, sourceId, userinfo.isPrivateDealUser());
85
    	long[] items = search.getResultEntityIDs();
85
    	long[] items = search.getResultEntityIDs();
86
    	if(items != null){
86
    	if(items != null){
87
    		for(long item: items){
87
    		for(long item: items){
88
    			try{
88
    			try{
89
    	    	    JSONObject productPropertiesInJson = new JSONObject(FileUtils.read(Utils.EXPORT_ENTITIES_PATH + item + File.separator + "ProductPropertiesSnippet.html"));
89
    	    	    JSONObject productPropertiesInJson = new JSONObject(FileUtils.read(Utils.EXPORT_ENTITIES_PATH + item + File.separator + "ProductPropertiesSnippet.html"));