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
SELECT | |
release_group.gid AS albumid, | |
release_group.type AS albumPrimaryTypeId, | |
release_group_primary_type.name as albumPrimaryTypeName, | |
release_name.name AS albumName, | |
artist_name.name AS artistName, | |
artist.gid AS artistGid, | |
artist.type as artisTypeId, | |
artist_type.name as artistTypeName, | |
artist.begin_date_year artistBeginDateYear, |
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
{ | |
"id": "744c7a1b-ac79-35c4-bd92-7e2c6a24c8d8", | |
"name": "Achtung Baby", | |
"year": 1991, | |
"tags": [ | |
"rock", | |
"pop rock", | |
"pop", | |
"album rock", | |
"90s" |
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
curl -XPOST 'http://es.javaetmoi.com/musicalbum/album/_search?pretty' -d ' | |
{ | |
"fields": [ | |
"artist.name", | |
"id", | |
"name", | |
"year.string" | |
], | |
"query": { | |
"query_string": { |
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
curl -XPOST 'http://es.javaetmoi.com/musicalbum/album/_search?pretty' -d ' | |
{ | |
"from": 0, | |
"size": 10, | |
"query": { | |
"bool": { | |
"must": [ | |
{ | |
"fuzzy_like_this": { | |
"fields": [ |
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
package com.googlecode.flyway.core.util.scanner.classpath; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.net.JarURLConnection; | |
import java.net.URISyntaxException; | |
import java.net.URL; | |
import java.net.URLConnection; | |
import java.util.Enumeration; | |
import java.util.Set; |
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
package com.javaetmoi.logback; | |
import ch.qos.logback.classic.Level; | |
import ch.qos.logback.classic.Logger; | |
import ch.qos.logback.classic.LoggerContext; | |
import ch.qos.logback.classic.encoder.PatternLayoutEncoder; | |
import ch.qos.logback.classic.joran.action.JMXConfiguratorAction; | |
import ch.qos.logback.classic.jul.LevelChangePropagator; | |
import ch.qos.logback.classic.spi.ILoggingEvent; | |
import ch.qos.logback.core.Appender; |
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
<bean id="myService" class="org.springframework.aop.framework.ProxyFactoryBean"> | |
<property name="target"> | |
<bean class="org.mockito.Mockito" factory-method="mock"> | |
<constructor-arg | |
value="com.javaetmoi.IService" /> | |
</bean> | |
</property> | |
<property name="proxyInterfaces"> | |
<value>com.javaetmoi.IService</value> | |
</property> |
OlderNewer