Subversion Repositories SmartDukaan

Rev

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

Rev 1044 Rev 1698
Line 2... Line 2...
2
 * 
2
 * 
3
 */
3
 */
4
package in.shop2020.serving.services;
4
package in.shop2020.serving.services;
5
 
5
 
6
 
6
 
-
 
7
import in.shop2020.config.ConfigException;
-
 
8
import in.shop2020.thrift.clients.config.ConfigClient;
-
 
9
 
7
import java.util.Arrays;
10
import java.util.Arrays;
8
import java.util.HashMap;
11
import java.util.HashMap;
9
import java.util.LinkedList;
12
import java.util.LinkedList;
10
import java.util.List;
13
import java.util.List;
11
import java.util.TreeMap;
14
import java.util.TreeMap;
Line 37... Line 40...
37
	private static final int PERCENTAGE_OF_TOTAL_RESULTS = 2;
40
	private static final int PERCENTAGE_OF_TOTAL_RESULTS = 2;
38
	
41
	
39
	/**
42
	/**
40
	 * 
43
	 * 
41
	 */
44
	 */
-
 
45
	public static final String SOLR_URL;
-
 
46
	
-
 
47
	static {
-
 
48
		String solr_url = null;
-
 
49
		try {
-
 
50
			solr_url = ConfigClient.getClient().get("solr_url");
-
 
51
		}catch(ConfigException cex){
-
 
52
			cex.printStackTrace();
42
	public static String SOLR_URL = "http://localhost:8983/solr/select/";
53
			solr_url = "http://localhost:8983/solr/select/";
-
 
54
		}
-
 
55
		SOLR_URL = solr_url;
-
 
56
	}
43
	
57
	
44
	/**
58
	/**
45
	 * 
59
	 * 
46
	 */
60
	 */
47
	private XPath xpath;
61
	private XPath xpath;