Skip to content

Instantly share code, notes, and snippets.

View pfeiffer's full-sized avatar

Mattias Pfeiffer pfeiffer

View GitHub Profile
@pfeiffer
pfeiffer / gist:1122810
Created August 3, 2011 14:50
ES test query
We couldn’t find that file to show.
@pfeiffer
pfeiffer / gist:1122596
Created August 3, 2011 13:09
Example query
{
"custom_score": {
"query": {
"filtered": {
"query": {
"match_all": {}
},
"filter": {
"and": [
{
{
"custom_score": {
"query": {
"filtered": {
"query": {
"match_all": { }
},
"filter": {
"and": [
{
[2011-07-28 00:18:32,655][WARN ][http.netty ] [Hermod] Caught exception while handling client http traffic, closing connection
java.lang.IllegalArgumentException: empty text
at org.elasticsearch.common.netty.handler.codec.http.HttpVersion.<init>(HttpVersion.java:103)
at org.elasticsearch.common.netty.handler.codec.http.HttpVersion.valueOf(HttpVersion.java:68)
at org.elasticsearch.common.netty.handler.codec.http.HttpRequestDecoder.createMessage(HttpRequestDecoder.java:81)
at org.elasticsearch.common.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:198)
at org.elasticsearch.common.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:107)
at org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:470)
at org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.cleanup(ReplayingDecoder.java:541)
at org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.channelDisconnected(R
alert('word up!');
class SearchSession < ActiveRecord::Base
include Redis::Objects
belongs_to :user
validates :user_id, :presence => true
serialize :conditions, Hash
list :cached_results_ids
window.onload = function() {
alert(':-)');
}