You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Erik Hatcher (JIRA)" <ji...@apache.org> on 2008/09/26 22:35:44 UTC

[jira] Created: (SOLR-792) Tree Faceting Component

Tree Faceting Component
-----------------------

                 Key: SOLR-792
                 URL: https://issues.apache.org/jira/browse/SOLR-792
             Project: Solr
          Issue Type: New Feature
            Reporter: Erik Hatcher
            Assignee: Erik Hatcher
            Priority: Minor


A component to do multi-level faceting.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-792) Tree Faceting Component

Posted by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12635010#action_12635010 ] 

Shalin Shekhar Mangar commented on SOLR-792:
--------------------------------------------

Is it this related to (or same as) SOLR-64 ?

> Tree Faceting Component
> -----------------------
>
>                 Key: SOLR-792
>                 URL: https://issues.apache.org/jira/browse/SOLR-792
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Erik Hatcher
>            Assignee: Erik Hatcher
>            Priority: Minor
>         Attachments: SOLR-792.patch
>
>
> A component to do multi-level faceting.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-792) Tree Faceting Component

Posted by "Erik Hatcher (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12733072#action_12733072 ] 

Erik Hatcher commented on SOLR-792:
-----------------------------------

See http://wiki.apache.org/solr/HierarchicalFaceting for stats on this approach and comparing/contrasting to SOLR-64

> Tree Faceting Component
> -----------------------
>
>                 Key: SOLR-792
>                 URL: https://issues.apache.org/jira/browse/SOLR-792
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Erik Hatcher
>            Assignee: Erik Hatcher
>            Priority: Minor
>         Attachments: SOLR-792.patch, SOLR-792.patch, SOLR-792.patch
>
>
> A component to do multi-level faceting.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SOLR-792) Tree Faceting Component

Posted by "Jeremy Hinegardner (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeremy Hinegardner updated SOLR-792:
------------------------------------

    Attachment: SOLR-792.patch

I've attempted to update SOLR-792 to work distributed.  This works with my test setup.  
Is adding a new field to ResponseBuilder the proper way to implement this?  Thats what FacetComponent does, so I followed its example.

To apply to HEAD, use 
{noformat}
patch -p1 < SOLR-792.patch
{noformat}

> Tree Faceting Component
> -----------------------
>
>                 Key: SOLR-792
>                 URL: https://issues.apache.org/jira/browse/SOLR-792
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Erik Hatcher
>            Assignee: Erik Hatcher
>            Priority: Minor
>         Attachments: SOLR-792.patch, SOLR-792.patch, SOLR-792.patch
>
>
> A component to do multi-level faceting.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-792) Tree Faceting Component

Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12635078#action_12635078 ] 

Hoss Man commented on SOLR-792:
-------------------------------

SOLR-64 is (in theory) about better faceting support for fields that represent a hierarchy.

What Erik is addressing seems to me more like generating an "N- dimensional matrix" of facet counts

> Tree Faceting Component
> -----------------------
>
>                 Key: SOLR-792
>                 URL: https://issues.apache.org/jira/browse/SOLR-792
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Erik Hatcher
>            Assignee: Erik Hatcher
>            Priority: Minor
>         Attachments: SOLR-792.patch
>
>
> A component to do multi-level faceting.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SOLR-792) Tree Faceting Component

Posted by "Jeremy Hinegardner (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeremy Hinegardner updated SOLR-792:
------------------------------------

    Attachment: SOLR-792.patch

Update to apply cleanly against trunk.

> Tree Faceting Component
> -----------------------
>
>                 Key: SOLR-792
>                 URL: https://issues.apache.org/jira/browse/SOLR-792
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Erik Hatcher
>            Assignee: Erik Hatcher
>            Priority: Minor
>         Attachments: SOLR-792.patch, SOLR-792.patch, SOLR-792.patch, SOLR-792.patch
>
>
> A component to do multi-level faceting.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (SOLR-792) Tree Faceting Component

Posted by "Erik Hatcher (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12635005#action_12635005 ] 

ehatcher edited comment on SOLR-792 at 9/27/08 3:01 AM:
------------------------------------------------------------

This patch is a simple implementation to do a fixed two-level faceting, using the SimpleFacets functions.  This is just the start.  The idea is to make the actual faceting implementation pluggable, support arbitrary levels, perhaps also support nested facet queries, not just facet fields.

With this patch, this query, on Solr's example data set, returns the data below:

http://localhost:8983/solr/select?q=*:*&rows=0&facet=on&facet.field=cat&facet.tree=cat,inStock&wt=json&indent=on

{code}
 "facet_counts":{
  "facet_queries":{},
  "facet_fields":{
	"cat":[
	 "electronics",14,
	 "memory",3,
	 "card",2,
	 "connector",2,
	 "drive",2,
	 "graphics",2,
	 "hard",2,
	 "monitor",2,
	 "search",2,
	 "software",2,
	 "camera",1,
	 "copier",1,
	 "multifunction",1,
	 "music",1,
	 "printer",1,
	 "scanner",1]},
  "facet_dates":{},
  "trees":[
	"cat,inStock",[
	 "electronics",[
	  "true",10,
	  "false",4],
	 "memory",[
	  "true",3,
	  "false",0],
	 "card",[
	  "false",2,
	  "true",0],
	 "connector",[
	  "false",2,
	  "true",0],
	 "drive",[
	  "true",2,
	  "false",0],
	 "graphics",[
	  "false",2,
	  "true",0],
	 "hard",[
	  "true",2,
	  "false",0],
	 "monitor",[
	  "true",2,
	  "false",0],
	 "search",[
	  "true",2,
	  "false",0],
	 "software",[
	  "true",2,
	  "false",0],
	 "camera",[
	  "true",1,
	  "false",0],
	 "copier",[
	  "true",1,
	  "false",0],
	 "multifunction",[
	  "true",1,
	  "false",0],
	 "music",[
	  "true",1,
	  "false",0],
	 "printer",[
	  "true",1,
	  "false",0],
	 "scanner",[
	  "true",1,
	  "false",0]]]}}
{code}

      was (Author: ehatcher):
    This patch is a simple implementation to do a fixed two-level faceting, using the SimpleFacets functions.  This is just the start.  The idea is to make the actual faceting implementation pluggable, support arbitrary levels, perhaps also support nested facet queries, not just facet fields.

With this patch, this query, on Solr's example data set, returns the data below:

http://localhost:8983/solr/select?q=*:*&rows=0&facet=on&facet.field=cat&facet.tree=cat,inStock&wt=json&indent=on


 "facet_counts":{
  "facet_queries":{},
  "facet_fields":{
	"cat":[
	 "electronics",14,
	 "memory",3,
	 "card",2,
	 "connector",2,
	 "drive",2,
	 "graphics",2,
	 "hard",2,
	 "monitor",2,
	 "search",2,
	 "software",2,
	 "camera",1,
	 "copier",1,
	 "multifunction",1,
	 "music",1,
	 "printer",1,
	 "scanner",1]},
  "facet_dates":{},
  "trees":[
	"cat,inStock",[
	 "electronics",[
	  "true",10,
	  "false",4],
	 "memory",[
	  "true",3,
	  "false",0],
	 "card",[
	  "false",2,
	  "true",0],
	 "connector",[
	  "false",2,
	  "true",0],
	 "drive",[
	  "true",2,
	  "false",0],
	 "graphics",[
	  "false",2,
	  "true",0],
	 "hard",[
	  "true",2,
	  "false",0],
	 "monitor",[
	  "true",2,
	  "false",0],
	 "search",[
	  "true",2,
	  "false",0],
	 "software",[
	  "true",2,
	  "false",0],
	 "camera",[
	  "true",1,
	  "false",0],
	 "copier",[
	  "true",1,
	  "false",0],
	 "multifunction",[
	  "true",1,
	  "false",0],
	 "music",[
	  "true",1,
	  "false",0],
	 "printer",[
	  "true",1,
	  "false",0],
	 "scanner",[
	  "true",1,
	  "false",0]]]}}
  
> Tree Faceting Component
> -----------------------
>
>                 Key: SOLR-792
>                 URL: https://issues.apache.org/jira/browse/SOLR-792
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Erik Hatcher
>            Assignee: Erik Hatcher
>            Priority: Minor
>         Attachments: SOLR-792.patch
>
>
> A component to do multi-level faceting.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SOLR-792) Tree Faceting Component

Posted by "Thibaut Lassalle (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thibaut Lassalle updated SOLR-792:
----------------------------------

    Attachment: SOLR-792.patch

Update to apply cleanly against release 1.4 

> Tree Faceting Component
> -----------------------
>
>                 Key: SOLR-792
>                 URL: https://issues.apache.org/jira/browse/SOLR-792
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Erik Hatcher
>            Assignee: Erik Hatcher
>            Priority: Minor
>         Attachments: SOLR-792.patch, SOLR-792.patch, SOLR-792.patch, SOLR-792.patch, SOLR-792.patch
>
>
> A component to do multi-level faceting.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SOLR-792) Tree Faceting Component

Posted by "Erik Hatcher (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Erik Hatcher updated SOLR-792:
------------------------------

    Attachment: SOLR-792.patch

This patch is a simple implementation to do a fixed two-level faceting, using the SimpleFacets functions.  This is just the start.  The idea is to make the actual faceting implementation pluggable, support arbitrary levels, perhaps also support nested facet queries, not just facet fields.

With this patch, this query, on Solr's example data set, returns the data below:

http://localhost:8983/solr/select?q=*:*&rows=0&facet=on&facet.field=cat&facet.tree=cat,inStock&wt=json&indent=on


 "facet_counts":{
  "facet_queries":{},
  "facet_fields":{
	"cat":[
	 "electronics",14,
	 "memory",3,
	 "card",2,
	 "connector",2,
	 "drive",2,
	 "graphics",2,
	 "hard",2,
	 "monitor",2,
	 "search",2,
	 "software",2,
	 "camera",1,
	 "copier",1,
	 "multifunction",1,
	 "music",1,
	 "printer",1,
	 "scanner",1]},
  "facet_dates":{},
  "trees":[
	"cat,inStock",[
	 "electronics",[
	  "true",10,
	  "false",4],
	 "memory",[
	  "true",3,
	  "false",0],
	 "card",[
	  "false",2,
	  "true",0],
	 "connector",[
	  "false",2,
	  "true",0],
	 "drive",[
	  "true",2,
	  "false",0],
	 "graphics",[
	  "false",2,
	  "true",0],
	 "hard",[
	  "true",2,
	  "false",0],
	 "monitor",[
	  "true",2,
	  "false",0],
	 "search",[
	  "true",2,
	  "false",0],
	 "software",[
	  "true",2,
	  "false",0],
	 "camera",[
	  "true",1,
	  "false",0],
	 "copier",[
	  "true",1,
	  "false",0],
	 "multifunction",[
	  "true",1,
	  "false",0],
	 "music",[
	  "true",1,
	  "false",0],
	 "printer",[
	  "true",1,
	  "false",0],
	 "scanner",[
	  "true",1,
	  "false",0]]]}}

> Tree Faceting Component
> -----------------------
>
>                 Key: SOLR-792
>                 URL: https://issues.apache.org/jira/browse/SOLR-792
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Erik Hatcher
>            Assignee: Erik Hatcher
>            Priority: Minor
>         Attachments: SOLR-792.patch
>
>
> A component to do multi-level faceting.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (SOLR-792) Tree Faceting Component

Posted by "Jeremy Hinegardner (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12640874#action_12640874 ] 

jjh edited comment on SOLR-792 at 10/19/08 1:25 PM:
-------------------------------------------------------------------

I've attempted to update SOLR-792 to work distributed.  This works with my test setup.  
Is adding a new field to ResponseBuilder the proper way to implement this?  Thats what FacetComponent does, so I followed its example.

To apply to HEAD, use 
{noformat}
patch -p1 < SOLR-792.patch
{noformat}

I also changed to SimpleOrderedMap in a few places where it was NamedList.  It seemed more appropriate.

      was (Author: jjh):
    I've attempted to update SOLR-792 to work distributed.  This works with my test setup.  
Is adding a new field to ResponseBuilder the proper way to implement this?  Thats what FacetComponent does, so I followed its example.

To apply to HEAD, use 
{noformat}
patch -p1 < SOLR-792.patch
{noformat}
  
> Tree Faceting Component
> -----------------------
>
>                 Key: SOLR-792
>                 URL: https://issues.apache.org/jira/browse/SOLR-792
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Erik Hatcher
>            Assignee: Erik Hatcher
>            Priority: Minor
>         Attachments: SOLR-792.patch, SOLR-792.patch, SOLR-792.patch
>
>
> A component to do multi-level faceting.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SOLR-792) Tree Faceting Component

Posted by "Erik Hatcher (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Erik Hatcher updated SOLR-792:
------------------------------

    Attachment: SOLR-792.patch

fixes inner TermQuery to use actual internal indexed value

> Tree Faceting Component
> -----------------------
>
>                 Key: SOLR-792
>                 URL: https://issues.apache.org/jira/browse/SOLR-792
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Erik Hatcher
>            Assignee: Erik Hatcher
>            Priority: Minor
>         Attachments: SOLR-792.patch, SOLR-792.patch
>
>
> A component to do multi-level faceting.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.