Oups... Do you think the API will stay inchanged ?
It's important for me to know if i need to prepare my team to a future API
change in the grouping support! And by the way, if you need some developer
help on the subject, my company let me work on these key feature. So i can
contribute ! Even if you just need tester i'm here ![]()
Thx for everything (including time waste to answer me)
--
Nicolas BLANC.
2012/8/17 Martijn v Groningen martijn.v.groningen@gmail.com
You are not alone
Field Collapsing/Combining · Issue #256 · elastic/elasticsearch · GitHubResult grouping is going to be added to ES in the near future. Some
internal
refactoring need to happen first. Also the grouped response I have in my
fork
will change.Martijn
On 17 August 2012 14:15, Nicolas Blanc nicolas.blanc@blablacar.com
wrote:Just import your work on the master branch of elasticsearch... Seems to
work
out of the box (in my case)
Need to adapt some facet code, but you did a very good job for an
experimental codeThx for this wonderfull piece of patches
Just a last question... What's missing in your code, so it can be
accepted
in the master elasticsearch branch ? I feel i'm not alone to need these
feature, already coded by you...--
Nicolas BLANC.2012/8/17 Martijn v Groningen martijn.v.groningen@gmail.com
If you're using the _parent field already, then I think the result
grouping might already work correctly in a multi shard environment.
When the _parent field is used it makes sure that docs with the same
_parent value end up on the same shard and since
the grouping works locally the result grouping should work. I haven't
tested this, but I think it works.Martijn
On 17 August 2012 11:00, Nicolas Blanc nicolas.blanc@blablacar.com
wrote:Thx to all!
But i already try to find my way with multiple requests... And it's
really
complicated to obtain what i want in a decent time...So, as i am crazy... And more! I just start to work on your base code
Martijn, to adapt it to a 'more than one shard' configuration. It's
not
easy, but i think i really need this feature! Better than ask to my
frontend
dev team to code a ugly workaround. In a KISS environnement, the
simple
and
stupid thing here is to code the missing feature! So let's go!Thx all for your propositions, nice to see a lot of helpers in the
group.Is existing somewhere some guidelines to follow when coding in
elasticsearch
? Didn't find any...--
Nicolas BLANC.Le vendredi 17 août 2012 10:35:36 UTC+2, Martijn v Groningen a écrit :
Hi Nicolas,
No, it doesn't work in a cluster with more than one shard. The result
grouping in my fork is more of an experiment.
Since you do have multiple shards doing a subsequent search that is
suggested by others is a good option to explore.Martijn
On 17 August 2012 03:39, David Pilato da...@pilato.fr wrote:
Nice idea.
Or use multiget:
Elasticsearch Platform — Find real-time answers at scale | ElasticDavid
Twitter : @dadoonet / @elasticsearchfrLe 17 août 2012 à 00:41, Yeah! victor....@gmail.com a écrit :
What if you'll try to use "ids" filter in second query? First query
will
return you a list of threads, then you in loop getting threads ids
in
array
and perform the second filtered query (match_all) with "ids"
filter.Something like:
$threads = $threadsIndex->search($threadsQuery); $ids = array(); foreach ($threads as /** @var $thread Elastica_Document */$thread)
{
$ids = $thread->getId();
}
$messagesQuery = new Elastica_Query_Filtered(
new Elastica_Query_MatchAll(),
new Elastica_Filter_Ids(null, $ids)
);четверг, 16 августа 2012 г., 12:04:43 UTC+3 пользователь Nicolas
Blanc
написал:Hi Martin,
Just follow your link, and i will give it a try!
Just a small question, i saw in your doc that i need to have only
1
shard!As i group all my threads by shard (thx to parent/child), is your
grouping
working on multiple shard? (i mean all objects to group are inside
the
same
shard)thx in advance,
--
Nicolas BLANC.Le mercredi 15 août 2012 10:16:13 UTC+2, Martijn v Groningen a
écrit
:Hi Nicolas,
I did some work in the past for result grouping. It is not
perfect,
but I think it something you can try out:
https://github.com/martijnvg/elasticsearch-with-local-groupingOr you can patches:
GitHub - lusini/elasticsearch-grouping-patches: This repository yields patches for elasticsearch with grouping supportMartijn
--
--
--
Met vriendelijke groet,Martijn van Groningen
--
Met vriendelijke groet,Martijn van Groningen
--
--
Met vriendelijke groet,Martijn van Groningen
--
--