Hi.
I have a situation where I'm searching amongst some 100K feeds and only want
one result per site in return. I have developed a really simple method of
grouping which just scrolls through the resultset(hitset) until a maxNum
docs of feeds from a set of unique sites is populated. Since I don't w
Hi all,
Is there a way to achieve $subject? For example, consider the following SQL
query.
SELECT A, B, C SUM(D) as E FROM `table` WHERE time BETWEEN fromDate AND
toDate *GROUP BY X,Y,Z*
In the above query we can group the records by, X,Y,Z. Is there a way to
achieve the same in Lucene? (I gues
Hi Rob,
Thanks a lot for above very descriptive answer. I will give it a try.
On Friday, March 18, 2016, Rob Audenaerde wrote:
> Hi Gimantha,
>
> You don't need to store the aggregates and don't need to retrieve
> Documents. The aggregates are calculated during collection using the
> BinaryDocV
Hi Rob,
Thank you for explaining your approach. Still I have a few questions. Do I
need to store the values being aggregated as STORED at indexing time? and
how does the collector handle a large number of documents when aggregating?
I mean lets say I have several millions documents in an index and
Hi Gimantha,
You don't need to store the aggregates and don't need to retrieve
Documents. The aggregates are calculated during collection using the
BinaryDocValues from the facet-module. What I do, is that I need to store
values in the facets using AssociationFacetFields. (for example
FloatAssocia
checon.com
> >>
> >> Lucene Helpful Hints:
> >> http://wiki.apache.org/lucene-java/BasicsOfPerformance
> >> http://wiki.apache.org/lucene-java/LuceneFAQ
> >>
> >>
> >>
> >> ---
:
Iterate through the result documents and take one of each group. Each
document has a groupingKey. I remember which groupingKey is already used and
don't take another document of this group into the result list.
Regards,
Nina
--
View this message in context:
http://www.nabble.com/Gro
gt; document has a groupingKey. I remember which groupingKey is already used
> and don't take another document of this group into the result list.
>
> Regards,
> Nina
>
--
View this message in context:
http://www.nabble.com/Group-by-in-Lucene---tp13581760p21702742.html
; > It is easier to first do a normal search und "group by" afterwards:
> >
> > Iterate through the result documents and take one of each group. Each
> > document has a groupingKey. I remember which groupingKey is already used
> > and don't take another doc
thing.
>>
>>
>> ninaS wrote:
>> >
>> > Hello,
>> >
>> > yes I tried HitCollector but I am not satisfied with it because you can
>> > not use sorting with HitCollector unless you implement a way to use
>> > TopFieldTocCollector. I did
> is a good choice. If you only count you don't need to sort anything.
> >
> >
> > ninaS wrote:
> > >
> > > Hello,
> > >
> > > yes I tried HitCollector but I am not satisfied with it because you can
> > > not use sorting wi
Group-by in Lucene/Solr has not been solved in a great general way yet
to my knowledge.
Ideally, we would want a solution that does not need to fit into memory.
However, you need the value of the field for each document. to do the
grouping As you are finding, this is not cheap to get
> >
> >public int getDistinctCount()
> >{
> >distinctSize = set.size();
> >return distinctSize;
> > }
> > }
> >
> >
> > On Wed, Jan 2
Marcus
On Wed, Jan 28, 2009 at 5:02 PM, Mark Miller wrote:
> Group-by in Lucene/Solr has not been solved in a great general way yet to
> my knowledge.
>
> Ideally, we would want a solution that does not need to fit into memory.
> However, you need the value
http://code.google.com/p/bobo-browse
looks like it may be the ticket.
Marc
--
View this message in context:
http://www.nabble.com/Group-by-in-Lucene---tp13581760p24767693.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com
Don't overlook Solr: http://lucene.apache.org/solr
Erik
On Aug 1, 2009, at 5:43 AM, mschipperheyn wrote:
http://code.google.com/p/bobo-browse
looks like it may be the ticket.
Marc
--
View this message in context:
http://www.nabble.com/Group-by-in-Lucene---tp13581760p24767693
Solr has an issue outstanding right now that implements something that
may be close to what you want. They are calling it Field Collapsing.
See https://issues.apache.org/jira/browse/SOLR-236
-Grant
On Nov 5, 2007, at 12:57 AM, Marcus Herou wrote:
Hi.
I have a situation where I'm searchi
Thanks. They seem to have got real far in the dev cycle on this. Seems like
it will hit the road in Solr 1.3.
However I would really like this feature to be developed for Core Lucene,
how do I start that process?
Develop it yourself you would say :) I'm serious isn't it a really cool and
useful fe
On Nov 5, 2007, at 7:49 AM, Marcus Herou wrote:
Thanks. They seem to have got real far in the dev cycle on this.
Seems like
it will hit the road in Solr 1.3.
However I would really like this feature to be developed for Core
Lucene,
how do I start that process?
Develop it yourself you woul
Cool.
I'll do since this is a field which I can spend time in.
Kindly
//Marcus
On 11/5/07, Grant Ingersoll <[EMAIL PROTECTED]> wrote:
>
>
> On Nov 5, 2007, at 7:49 AM, Marcus Herou wrote:
>
> > Thanks. They seem to have got real far in the dev cycle on this.
> > Seems like
> > it will hit the ro
l Hints:
>> http://wiki.apache.org/lucene-java/BasicsOfPerformance
>> http://wiki.apache.org/lucene-java/LuceneFAQ
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For add
Lucene has a grouping module that has several approaches for grouping
search hits, though it's only by a single field I believe.
Mike McCandless
http://blog.mikemccandless.com
On Sun, Aug 9, 2015 at 2:55 PM, Gimantha Bandara wrote:
> Hi all,
>
> Is there a way to achieve $subject? For example,
You can write a custom (facet) collector to do this. I have done something
similar, I'll describe my approach:
For all the values that need grouping or aggregating, I have added a
FacetField ( an AssociatedFacetField, so I can store the value alongside
the ordinal) . The main search stays the same
23 matches
Mail list logo