This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Slf4j | |
public class AffiliateInformationProvider { | |
private final static String AFFILIATE_BASE_URL = "http://s.click.aliexpress.com/deep_link.htm"; | |
private final static String AFFILIATE_SHORT_KEY = "YOUR_SHORT_KEY"; | |
public String getAffiliateUrl(String detailUrl) { | |
URL url = UrlBuilder.fromString(AFFILIATE_BASE_URL) | |
.addParameter("dl_target_url", detailUrl) | |
.addParameter("aff_short_key", AFFILIATE_SHORT_KEY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"products": { | |
"mappings": { | |
"item": { | |
"dynamic_templates": [ | |
{ | |
"stringSort": { | |
"path_match": "stringSort.*", | |
"mapping": { | |
"type": "keyword" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"profile": { | |
"shards": [ | |
{ | |
"id": "[Et56u6N-RBusw0uf0BnpUQ][products][2]", | |
"searches": [ | |
{ | |
"query": [ | |
{ | |
"type": "BooleanQuery", | |
"description": "+searchData.fullText:drone #numberSort.totalGrossPrice:[1.0 TO 1500.0] #numberSort.lotSize:[1.0 TO 10.0] #numberSort.orders:[10.0 TO 1.0E7] #numberSort.ratings:[4.0 TO 5.0]", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"from" : 0, | |
"size" : 25, | |
"profile": true, | |
"query" : { | |
"bool" : { | |
"must" : [ | |
{ | |
"match" : { | |
"searchData.fullText" : { |