Subversion Repositories SmartDukaan

Rev

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

Rev 9103 Rev 9269
Line 1... Line 1...
1
/**
1
/**
2
 * 
2
 * 
3
 */
3
 */
4
package in.shop2020.serving.services;
4
package in.shop2020.mobileapi.serving.services;
5
 
5
 
6
 
6
 
7
import in.shop2020.config.ConfigException;
7
import in.shop2020.config.ConfigException;
8
import in.shop2020.serving.controllers.SearchController;
8
import in.shop2020.mobileapi.serving.controllers.SearchController;
9
import in.shop2020.serving.utils.Utils;
9
import in.shop2020.mobileapi.serving.utils.Utils;
10
import in.shop2020.thrift.clients.config.ConfigClient;
10
import in.shop2020.thrift.clients.config.ConfigClient;
11
 
11
 
12
import java.io.UnsupportedEncodingException;
12
import java.io.UnsupportedEncodingException;
13
import java.net.URLEncoder;
13
import java.net.URLEncoder;
14
import java.util.ArrayList;
14
import java.util.ArrayList;
Line 209... Line 209...
209
			}
209
			}
210
			if(maxPrice != null){
210
			if(maxPrice != null){
211
				maxString = maxPrice.toString();
211
				maxString = maxPrice.toString();
212
			}
212
			}
213
		}
213
		}
214
		uri += "&fq=" + priceFacetName + ":["+  minString + " " + maxString + "]";
214
		uri += "&fq=" + priceFacetName + ":["+  minString + "%20" + maxString + "]";
215
		uri += "&fl=ID,Name&facet=true&start=" + start + "&rows=" + rows + "&facet.mincount=1";
215
		uri += "&fl=ID,Name&facet=true&start=" + start + "&rows=" + rows + "&facet.mincount=1";
216
		for(String facetDefinitionID : filtrableFacets) {
216
		for(String facetDefinitionID : filtrableFacets) {
217
				if(facetsQueried.contains(facetDefinitionID)){
217
				if(facetsQueried.contains(facetDefinitionID)){
218
					uri += "&facet.field={!ex=dt" + facetsQueried.indexOf(facetDefinitionID)+ "}"+ facetDefinitionID; 
218
					uri += "&facet.field={!ex=dt" + facetsQueried.indexOf(facetDefinitionID)+ "}"+ facetDefinitionID; 
219
				} else {
219
				} else {