lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martijn van Groningen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-1421) Ability to group search results by field
Date Thu, 12 May 2011 10:48:47 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-1421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13032350#comment-13032350
] 

Martijn van Groningen commented on LUCENE-1421:
-----------------------------------------------

bq. But what if docid=2 had age=17 instead? How would we determine what value the group (for
hgid=1) should have for the "age" field?
That would depend on the group sort, right? If your group sort is age asc the lowest document
would be chosen.

bq. Or... would the group count +1 to age=10 and +1 to age=17 in that case?
You mean like a sum of all ages per group? That is interesting, but sounds more like a function
to me. This can be computed with a separated group collector. Wouldn't make sense to me, to
have this with a regular field facet. 

> Ability to group search results by field
> ----------------------------------------
>
>                 Key: LUCENE-1421
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1421
>             Project: Lucene - Java
>          Issue Type: New Feature
>          Components: Search
>            Reporter: Artyom Sokolov
>            Assignee: Michael McCandless
>            Priority: Minor
>             Fix For: 3.2, 4.0
>
>         Attachments: LUCENE-1421.patch, LUCENE-1421.patch, lucene-grouping.patch
>
>
> It would be awesome to group search results by specified field. Some functionality was
provided for Apache Solr but I think it should be done in Core Lucene. There could be some
useful information like total hits about collapsed data like total count and so on.
> Thanks,
> Artyom

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message