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
mappings: | |
event: | |
index_analyzer: standardAnalyzer | |
search_analyzer: standardAnalyzer | |
properties: | |
name: | |
type: multi_field | |
fields: | |
name: { type: string, index: analyzed } | |
partial: { type: string, index: analyzed, index_analyzer: ngramAnalyzer, search_analyzer: standardAnalyzer } |
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
--- | |
- | |
attributes: | |
:name: Ruby on Rails 2011 | |
:description: "" | |
:programs: "" | |
:address: Arroio Grande Santa Catarina Brasil | |
:date_time_end: 2011-10-19 13:46:00 | |
:id: "395" | |
:_score: 0.0130888205 |
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
--- | |
:query: | |
:filtered: | |
:query: | |
:bool: | |
:should: | |
- :text: | |
:name: | |
:query: euax arroio grande | |
:boost: 10.0 |
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
//algo +/- assim | |
var eventos = $(".barra_lateral li.eu_vou").map(function() { | |
return {date: new Date($(this).attr("data_inicio")), element: li} | |
}).get() | |
eventos.sort(function(a, b){ return a.date < b.date }) | |
$(".barra_lateral li.eu_vou").html($.map(eventos, function(e) { return e.element })) |
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
--- | |
:query: | |
:boosting: | |
:positive: | |
:filtered: | |
:query: | |
:bool: | |
:should: | |
- :text: | |
:name: |
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
# My settings | |
mappings: | |
event: | |
index_analyzer: standardAnalyzer | |
search_analyzer: standardAnalyzer | |
properties: | |
name: | |
type: multi_field | |
fields: |
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
### Query without wildcard | |
query: | |
bool: | |
should: | |
- field: | |
name: | |
query: linguagem | |
boost: 10.0 | |
- field: | |
description: |
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
query: | |
bool: | |
should: | |
- field: | |
name: ruby | |
boost: 10.0 | |
- field: | |
description: ruby | |
boost: 5.0 | |
- field: |