This file contains hidden or 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
| package com.hopwork.hopsearch; | |
| import org.springframework.boot.SpringApplication; | |
| import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | |
| import org.springframework.context.annotation.ComponentScan; | |
| import org.springframework.context.annotation.Configuration; | |
| @Configuration | |
| @EnableAutoConfiguration | |
| @ComponentScan(value = {"com.hopwork", "com.lateralthoughts"}) |
This file contains hidden or 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
| public class HopSearchEnabledCondition implements Condition { | |
| @Override | |
| public boolean matches(ConditionContext conditionContext, AnnotatedTypeMetadata annotatedTypeMetadata) { | |
| PropertyResolver resolver = conditionContext.getEnvironment(); | |
| // renvoie toujours null, les propriétés ne sont jamais résolus | |
| return "true".equalsIgnoreCase(resolver.getProperty("hopsearch.enabled")); | |
| } | |
| } |
This file contains hidden or 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
| server { | |
| listen 80; | |
| server_name A.com; | |
| root /var/www/kibana; | |
| # Set image format types to expire in a very long time | |
| location ~* ^.+\.(jpg|jpeg|gif|png|ico)$ { | |
| access_log off; | |
| expires max; | |
| } |
This file contains hidden or 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
| package database; | |
| import java.io.*; | |
| import java.sql.PreparedStatement; | |
| import java.sql.ResultSet; | |
| import java.sql.SQLException; | |
| import java.sql.Types; | |
| import java.util.UUID; | |
| import org.apache.commons.io.IOUtils; |
This file contains hidden or 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
| curl -X DELETE localhost:9200/test | |
| curl -X PUT localhost:9200/test -d ' | |
| { | |
| "settings" : { | |
| "index" : { | |
| "analysis" : { | |
| "analyzer" : { | |
| "myanalyzer" : { | |
| "type" : "custom", | |
| "tokenizer" : "lowercase", |
NewerOlder