Problemas y soluciones
Miguel González Nieto (@scenting)
Miguel Sánchez Rodríguez (@miguelsr1987)
Muuuuy lento. Según la documentación, ¡hasta un 10x más!
Debemos borrar los datos viejos cada vez que cambiemos un documento de índice.
/_all/newsitem/_search?q=body:motril
{
took: 1550,
timed_out: false,
_shards: {
total: 99,
successful: 99,
failed: 0
},
hits: {
total: 19869,
max_score: 4.725038,
hits: [
{
_index: "accesonews_2014_07",
_type: "newsitem",
_id: "2130936",
_score: 4.725038,
_source: {
body: "@djnieto76 @raphapeugeot motril mejorrr",
source_name: "Twitter / Bolsonblanco",
author: [ ],
klout_score: 50,
title: "@djnieto76 @raphapeugeot motril mejorrr",
creation_time: "2014-07-26T23:24:19.584741+00:00",
remote_code: "/i/g/t493174869069406210",
client: [
21
],
project: [
43
],
/accesonews_2015_10/newsitem/_search?q=body:volkswagen
{
took: 5,
timed_out: false,
_shards: {
total: 1,
successful: 1,
failed: 0
},
hits: {
total: 22659,
max_score: 2.687686,
hits: [
{
_index: "accesonews_2015_10",
_type: "newsitem",
_id: "17973385",
_score: 1.6798037,
_source: {
body: "#Bankia Comienzan los problemas financieros para Volkswagen http://t.co/YE9xcEZkM6",
source_rank: null,
source_name: "Twitter / Bankia_Acciones",
publication_date: "2015-10-01T16:22:53+00:00",
author: [ ],
url: "http://twitter.com/Bankia_Acciones/statuses/649620508716077056",
klout_score: null,
title: "#Bankia Comienzan los problemas financieros para Volkswagen http://t.co/YE9xcEZkM6",
creation_time: "2015-10-01T16:23:18.849Z",
remote_code: "/i/g/t649620508716077056",
source_url: "http://www.twitter.com/Bankia_Acciones",