Subversion Repositories SmartDukaan

Rev

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

Rev 6931 Rev 6942
Line 49... Line 49...
49
	
49
	
50
	private Map<String, Double> dynamicSearchMap = null;
50
	private Map<String, Double> dynamicSearchMap = null;
51
 
51
 
52
	private String query;
52
	private String query;
53
 
53
 
54
	private Double minPrice;
54
	private Double minPrice =null;
55
	private Double maxPrice;
55
	private Double maxPrice = null;
56
	
56
	
57
	private long type = 0;
57
	private long type = 0;
58
	private long windowSize = 20;
58
	private long windowSize = 20;
59
	private long page = 1;
59
	private long page = 1;
60
	private long totalResults;
60
	private long totalResults;
Line 134... Line 134...
134
    	setFacet(Arrays.asList(fqrys), search);
134
    	setFacet(Arrays.asList(fqrys), search);
135
 
135
 
136
 
136
 
137
    	Map<String, Double> priceMap = search.getPriceStatsMap();
137
    	Map<String, Double> priceMap = search.getPriceStatsMap();
138
    	if(priceMap != null){
138
    	if(priceMap != null){
-
 
139
    		if (this.minPrice == null){
139
    		this.minPrice = priceMap.get("min");
140
    			this.minPrice = priceMap.get("min");
-
 
141
    		}
-
 
142
    		if(this.maxPrice == null) {
140
    		this.maxPrice = priceMap.get("max");
143
    			this.maxPrice = priceMap.get("max");
-
 
144
    		}
141
    	}
145
    	}
142
    	else{
146
    	else{
143
    		this.minPrice = 0.0;
147
    		this.minPrice = 0.0;
144
    		this.maxPrice = 0.0;
148
    		this.maxPrice = 0.0;
145
    	}
149
    	}