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 "Yonik Seeley (JIRA)" <ji...@apache.org> on 2006/11/02 19:03:16 UTC
[jira] Created: (SOLR-64) strict hierarchical facets
strict hierarchical facets
--------------------------
Key: SOLR-64
URL: http://issues.apache.org/jira/browse/SOLR-64
Project: Solr
Issue Type: New Feature
Components: search
Reporter: Yonik Seeley
Strict Facet Hierarchies... each tag has at most one parent (a tree).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Issue Comment Edited: (SOLR-64) strict hierarchical facets
Posted by "Koji Sekiguchi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12703221#action_12703221 ]
Koji Sekiguchi edited comment on SOLR-64 at 4/27/09 10:12 AM:
--------------------------------------------------------------
First draft, need more test. This version doesn't support distributed environment.
- schema setup
{code:xml|title=schema.xml}
<fieldType name="hierarchy" class="solr.HierarchicalFacetField" omitNorms="true" positionIncrementGap="0" indexed="true" stored="false" />
<field name="hiefacet" type="hierarchy" indexed="true" stored="true" multiValued="true" />
{code}
- sample data
{code:xml|title=sample data}
<add>
<doc>
<field name="id">1</field>
<field name="hiefacet">A/B/E/</field>
<field name="hiefacet">B/B/D/E/</field>
</doc>
<doc>
<field name="id">2</field>
<field name="hiefacet">A/B/E/</field>
</doc>
<doc>
<field name="id">3</field>
<field name="hiefacet">A/B/F/</field>
</doc>
<doc>
<field name="id">4</field>
<field name="hiefacet">A/C/G/</field>
</doc>
<doc>
<field name="id">5</field>
<field name="hiefacet">A/C/G/</field>
</doc>
<doc>
<field name="id">6</field>
<field name="hiefacet">A/C/G/</field>
</doc>
<doc>
<field name="id">7</field>
<field name="hiefacet">A/D/</field>
</doc>
<doc>
<field name="id">8</field>
<field name="hiefacet">A/</field>
</doc>
<doc>
<field name="id">9</field>
<field name="hiefacet">B/B/C/</field>
</doc>
</add>
{code}
- usage:
http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&indent=on&facet=on&facet.field=hiefacet&wt=json
{code:title=&facet=on&facet.field=hiefacet}
"facet_counts":{
"facet_queries":{},
"facet_fields":{
"hiefacet":[
"sub_facets",[
"A",8,
"path-A","A/",
"sub_facets",[
"B",3,
"path-B","A/B/",
"sub_facets",[
"E",2,
"path-E","A/B/E/",
"F",1,
"path-F","A/B/F/"],
"C",3,
"path-C","A/C/",
"sub_facets",[
"G",3,
"path-G","A/C/G/"],
"D",1,
"path-D","A/D/"],
"B",2,
"path-B","B/",
"sub_facets",[
"B",2,
"path-B","B/B/",
"sub_facets",[
"C",1,
"path-C","B/B/C/",
"D",1,
"path-D","B/B/D/",
"sub_facets",[
"E",1,
"path-E","B/B/D/E/"]]]]]},
"facet_dates":{}}
{code}
- usage: facet.depth
http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&indent=on&facet=on&facet.field=hiefacet&facet.depth=2&wt=json
{code:title=&facet.field=hiefacet&facet.depth=2}
"facet_counts":{
"facet_queries":{},
"facet_fields":{
"hiefacet":[
"sub_facets",[
"A",8,
"path-A","A/",
"sub_facets",[
"B",3,
"path-B","A/B/",
"C",3,
"path-C","A/C/",
"D",1,
"path-D","A/D/"],
"B",2,
"path-B","B/",
"sub_facets",[
"B",2,
"path-B","B/B/"]]]},
"facet_dates":{}}
{code}
- usage: facet.prefix
http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&indent=on&facet=on&facet.field=hiefacet&wt=json&facet.prefix=A%2FB%2F
{code:title=&facet=on&facet.field=hiefacet&facet.prefix=A/B/}
"facet_counts":{
"facet_queries":{},
"facet_fields":{
"hiefacet":[
"sub_facets",[
"B",3,
"path-B","A/B/",
"sub_facets",[
"E",2,
"path-E","A/B/E/",
"F",1,
"path-F","A/B/F/"]]]},
"facet_dates":{}}
{code}
was (Author: koji):
First draft, need more test. This version doesn't support distributed environment.
- schema setup
{code:xml|title=schema.xml}
<fieldType name="hierarchy" class="solr.HierarchicalFacetField" omitNorms="true" positionIncrementGap="0" indexed="true" stored="false" />
<field name="hiefacet" type="hierarchy" indexed="true" stored="true" multiValued="true" />
{code}
- sample data
{code:xml|title=sample data}
<add>
<doc>
<field name="id">1</field>
<field name="hiefacet">A/B/E/</field>
<field name="hiefacet">B/B/D/E/</field>
</doc>
<doc>
<field name="id">2</field>
<field name="hiefacet">A/B/E/</field>
</doc>
<doc>
<field name="id">3</field>
<field name="hiefacet">A/B/F/</field>
</doc>
<doc>
<field name="id">4</field>
<field name="hiefacet">A/C/G/</field>
</doc>
<doc>
<field name="id">5</field>
<field name="hiefacet">A/C/G/</field>
</doc>
<doc>
<field name="id">6</field>
<field name="hiefacet">A/C/G/</field>
</doc>
<doc>
<field name="id">7</field>
<field name="hiefacet">A/D/</field>
</doc>
<doc>
<field name="id">8</field>
<field name="hiefacet">A/</field>
</doc>
<doc>
<field name="id">9</field>
<field name="hiefacet">B/B/C/</field>
</doc>
</add>
{code}
- usage:
http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&indent=on&facet=on&facet.field=hiefacet&wt=json
{code:json}
"facet_counts":{
"facet_queries":{},
"facet_fields":{
"hiefacet":[
"sub_facets",[
"A",8,
"path-A","A/",
"sub_facets",[
"B",3,
"path-B","A/B/",
"sub_facets",[
"E",2,
"path-E","A/B/E/",
"F",1,
"path-F","A/B/F/"],
"C",3,
"path-C","A/C/",
"sub_facets",[
"G",3,
"path-G","A/C/G/"],
"D",1,
"path-D","A/D/"],
"B",2,
"path-B","B/",
"sub_facets",[
"B",2,
"path-B","B/B/",
"sub_facets",[
"C",1,
"path-C","B/B/C/",
"D",1,
"path-D","B/B/D/",
"sub_facets",[
"E",1,
"path-E","B/B/D/E/"]]]]]},
"facet_dates":{}}
{code}
- usage: facet.depth
http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&indent=on&facet=on&facet.field=hiefacet&facet.depth=2&wt=json
{code:json}
"facet_counts":{
"facet_queries":{},
"facet_fields":{
"hiefacet":[
"sub_facets",[
"A",8,
"path-A","A/",
"sub_facets",[
"B",3,
"path-B","A/B/",
"C",3,
"path-C","A/C/",
"D",1,
"path-D","A/D/"],
"B",2,
"path-B","B/",
"sub_facets",[
"B",2,
"path-B","B/B/"]]]},
"facet_dates":{}}
{code}
- usage: facet.prefix
http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&indent=on&facet=on&facet.field=hiefacet&wt=json&facet.prefix=A%2FB%2F
{code:json}
"facet_counts":{
"facet_queries":{},
"facet_fields":{
"hiefacet":[
"sub_facets",[
"B",3,
"path-B","A/B/",
"sub_facets",[
"E",2,
"path-E","A/B/E/",
"F",1,
"path-F","A/B/F/"]]]},
"facet_dates":{}}
{code}
> strict hierarchical facets
> --------------------------
>
> Key: SOLR-64
> URL: https://issues.apache.org/jira/browse/SOLR-64
> Project: Solr
> Issue Type: New Feature
> Components: search
> Reporter: Yonik Seeley
> Fix For: 1.5
>
> Attachments: SOLR-64.patch
>
>
> Strict Facet Hierarchies... each tag has at most one parent (a tree).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SOLR-64) strict hierarchical facets
Posted by "Erik Hatcher (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12731799#action_12731799 ]
Erik Hatcher commented on SOLR-64:
----------------------------------
David - I'm not seeing any problems with trailing slashes - looks the same in the response as without. However, using leading slashes does cause a difference and I think that should be fixed.
Definitely a nice patch. I'm wondering, though, if making additional faceting like this is perhaps best implemented as an additional search component (like SOLR-792).
And, another nicety (perhaps even a necessity) would be the ability to put additional token filters in the mix to add custom information to each term indexed (I'm thinking payloads here).
> strict hierarchical facets
> --------------------------
>
> Key: SOLR-64
> URL: https://issues.apache.org/jira/browse/SOLR-64
> Project: Solr
> Issue Type: New Feature
> Components: search
> Reporter: Yonik Seeley
> Fix For: 1.5
>
> Attachments: SOLR-64.patch
>
>
> Strict Facet Hierarchies... each tag has at most one parent (a tree).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SOLR-64) strict hierarchical facets
Posted by "Wadim Kruse (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12834332#action_12834332 ]
Wadim Kruse commented on SOLR-64:
---------------------------------
I am getting the same results as Anil, Lesiak and Thomas applying the [^SOLR-64.patch] from 08.01.2010 to release-1.4.0 (r834197) and branch-1.4.0 (834467).
http://old.nabble.com/Strict-Hierarchical-Facets-%28SOLR-64%29-td27612209.html
> strict hierarchical facets
> --------------------------
>
> Key: SOLR-64
> URL: https://issues.apache.org/jira/browse/SOLR-64
> Project: Solr
> Issue Type: New Feature
> Components: search
> Reporter: Yonik Seeley
> Fix For: 1.5
>
> Attachments: SOLR-64.patch, SOLR-64.patch, SOLR-64.patch
>
>
> Strict Facet Hierarchies... each tag has at most one parent (a tree).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SOLR-64) strict hierarchical facets
Posted by "Thomas Traeger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12771210#action_12771210 ]
Thomas Traeger commented on SOLR-64:
------------------------------------
Hi,
I'm also struggling with this problem and tried to investigate further. Found no solution so far but at least discovered the latest revsision where this patch worked: 804700.
In the next change (804726) yonik commented: "SOLR-1353: Implement and use reusable token streams for analysis":
[http://svn.apache.org/viewvc?view=revision&revision=804726]
Does this help anyone?
> strict hierarchical facets
> --------------------------
>
> Key: SOLR-64
> URL: https://issues.apache.org/jira/browse/SOLR-64
> Project: Solr
> Issue Type: New Feature
> Components: search
> Reporter: Yonik Seeley
> Fix For: 1.5
>
> Attachments: SOLR-64.patch, SOLR-64.patch
>
>
> Strict Facet Hierarchies... each tag has at most one parent (a tree).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SOLR-64) strict hierarchical facets
Posted by "Thibaut Lassalle (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-64?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thibaut Lassalle updated SOLR-64:
---------------------------------
Comment: was deleted
(was: Hi
I did the same patch for the solr-1.4 release
http://dev.lutece.paris.fr/svn/lutece/contribs/atoswordline/trunk/config-SOLR/SOLR-64-byParis.patch
)
> strict hierarchical facets
> --------------------------
>
> Key: SOLR-64
> URL: https://issues.apache.org/jira/browse/SOLR-64
> Project: Solr
> Issue Type: New Feature
> Components: search
> Reporter: Yonik Seeley
> Fix For: 1.5
>
> Attachments: SOLR-64.patch, SOLR-64.patch, SOLR-64.patch
>
>
> Strict Facet Hierarchies... each tag has at most one parent (a tree).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SOLR-64) strict hierarchical facets
Posted by "David Smiley (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12717260#action_12717260 ]
David Smiley commented on SOLR-64:
----------------------------------
If the hierarchy passed to this field type has a trailing '/' like ion your samples here then it works but it doesn't if it is not supplied. Either the field type should throw an error or it should implicitly add a '/' if it isn't present. I'm not sure how it handles leading slashes but it should behave similarly.
Great patch by the way.
> strict hierarchical facets
> --------------------------
>
> Key: SOLR-64
> URL: https://issues.apache.org/jira/browse/SOLR-64
> Project: Solr
> Issue Type: New Feature
> Components: search
> Reporter: Yonik Seeley
> Fix For: 1.5
>
> Attachments: SOLR-64.patch
>
>
> Strict Facet Hierarchies... each tag has at most one parent (a tree).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SOLR-64) strict hierarchical facets
Posted by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-64?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shalin Shekhar Mangar updated SOLR-64:
--------------------------------------
Fix Version/s: 1.4
> strict hierarchical facets
> --------------------------
>
> Key: SOLR-64
> URL: https://issues.apache.org/jira/browse/SOLR-64
> Project: Solr
> Issue Type: New Feature
> Components: search
> Reporter: Yonik Seeley
> Fix For: 1.4
>
>
> Strict Facet Hierarchies... each tag has at most one parent (a tree).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SOLR-64) strict hierarchical facets
Posted by "Anıl Çetin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12766064#action_12766064 ]
Anıl Çetin commented on SOLR-64:
--------------------------------
Hi all,
I applied the patch to solr nightly (solr-2009-10-14.zip) it compiles but results are somehow broken. It concatenates results recursively;
for: level1/level2/level3/level4
Expected Result:
level1
--> level2
------> level3
-----------> level4
But it becomes:
level1
--> level1/level2
------> level1/level2/level3
-----------> level1/level2/level3/level4
There may be a method changed, any idea?
> strict hierarchical facets
> --------------------------
>
> Key: SOLR-64
> URL: https://issues.apache.org/jira/browse/SOLR-64
> Project: Solr
> Issue Type: New Feature
> Components: search
> Reporter: Yonik Seeley
> Fix For: 1.5
>
> Attachments: SOLR-64.patch, SOLR-64.patch
>
>
> Strict Facet Hierarchies... each tag has at most one parent (a tree).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SOLR-64) strict hierarchical facets
Posted by "Thibaut Lassalle (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12798053#action_12798053 ]
Thibaut Lassalle commented on SOLR-64:
--------------------------------------
Hi
I did the same patch for the solr-1.4 release
http://dev.lutece.paris.fr/svn/lutece/contribs/atoswordline/trunk/config-SOLR/SOLR-64-byParis.patch
> strict hierarchical facets
> --------------------------
>
> Key: SOLR-64
> URL: https://issues.apache.org/jira/browse/SOLR-64
> Project: Solr
> Issue Type: New Feature
> Components: search
> Reporter: Yonik Seeley
> Fix For: 1.5
>
> Attachments: SOLR-64.patch, SOLR-64.patch
>
>
> Strict Facet Hierarchies... each tag has at most one parent (a tree).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SOLR-64) strict hierarchical facets
Posted by "Jayendra Patil (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839361#action_12839361 ]
Jayendra Patil commented on SOLR-64:
------------------------------------
Facing the Same Issue ... Tried to debug it further .. . seems more of an Lucene Issue rather than Solr.
Tried it through Luke as well selecting the Documents tab, Browse the Term and clicking the Next term produces the same result as mentioned above in the issue.
The DirectoryReader class seems to return the extended Intermingled values.
> strict hierarchical facets
> --------------------------
>
> Key: SOLR-64
> URL: https://issues.apache.org/jira/browse/SOLR-64
> Project: Solr
> Issue Type: New Feature
> Components: search
> Reporter: Yonik Seeley
> Fix For: 1.5
>
> Attachments: SOLR-64.patch, SOLR-64.patch, SOLR-64.patch
>
>
> Strict Facet Hierarchies... each tag has at most one parent (a tree).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SOLR-64) strict hierarchical facets
Posted by "Koji Sekiguchi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-64?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Koji Sekiguchi updated SOLR-64:
-------------------------------
Attachment: SOLR-64.patch
First draft, need more test. This version doesn't support distributed environment.
- schema setup
{code:xml|title=schema.xml}
<fieldType name="hierarchy" class="solr.HierarchicalFacetField" omitNorms="true" positionIncrementGap="0" indexed="true" stored="false" />
<field name="hiefacet" type="hierarchy" indexed="true" stored="true" multiValued="true" />
{code}
- sample data
{code:xml|title=sample data}
<add>
<doc>
<field name="id">1</field>
<field name="hiefacet">A/B/E/</field>
<field name="hiefacet">B/B/D/E/</field>
</doc>
<doc>
<field name="id">2</field>
<field name="hiefacet">A/B/E/</field>
</doc>
<doc>
<field name="id">3</field>
<field name="hiefacet">A/B/F/</field>
</doc>
<doc>
<field name="id">4</field>
<field name="hiefacet">A/C/G/</field>
</doc>
<doc>
<field name="id">5</field>
<field name="hiefacet">A/C/G/</field>
</doc>
<doc>
<field name="id">6</field>
<field name="hiefacet">A/C/G/</field>
</doc>
<doc>
<field name="id">7</field>
<field name="hiefacet">A/D/</field>
</doc>
<doc>
<field name="id">8</field>
<field name="hiefacet">A/</field>
</doc>
<doc>
<field name="id">9</field>
<field name="hiefacet">B/B/C/</field>
</doc>
</add>
{code}
- usage:
http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&indent=on&facet=on&facet.field=hiefacet&wt=json
{code:json}
"facet_counts":{
"facet_queries":{},
"facet_fields":{
"hiefacet":[
"sub_facets",[
"A",8,
"path-A","A/",
"sub_facets",[
"B",3,
"path-B","A/B/",
"sub_facets",[
"E",2,
"path-E","A/B/E/",
"F",1,
"path-F","A/B/F/"],
"C",3,
"path-C","A/C/",
"sub_facets",[
"G",3,
"path-G","A/C/G/"],
"D",1,
"path-D","A/D/"],
"B",2,
"path-B","B/",
"sub_facets",[
"B",2,
"path-B","B/B/",
"sub_facets",[
"C",1,
"path-C","B/B/C/",
"D",1,
"path-D","B/B/D/",
"sub_facets",[
"E",1,
"path-E","B/B/D/E/"]]]]]},
"facet_dates":{}}
{code}
- usage: facet.depth
http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&indent=on&facet=on&facet.field=hiefacet&facet.depth=2&wt=json
{code:json}
"facet_counts":{
"facet_queries":{},
"facet_fields":{
"hiefacet":[
"sub_facets",[
"A",8,
"path-A","A/",
"sub_facets",[
"B",3,
"path-B","A/B/",
"C",3,
"path-C","A/C/",
"D",1,
"path-D","A/D/"],
"B",2,
"path-B","B/",
"sub_facets",[
"B",2,
"path-B","B/B/"]]]},
"facet_dates":{}}
{code}
- usage: facet.prefix
http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&indent=on&facet=on&facet.field=hiefacet&wt=json&facet.prefix=A%2FB%2F
{code:json}
"facet_counts":{
"facet_queries":{},
"facet_fields":{
"hiefacet":[
"sub_facets",[
"B",3,
"path-B","A/B/",
"sub_facets",[
"E",2,
"path-E","A/B/E/",
"F",1,
"path-F","A/B/F/"]]]},
"facet_dates":{}}
{code}
> strict hierarchical facets
> --------------------------
>
> Key: SOLR-64
> URL: https://issues.apache.org/jira/browse/SOLR-64
> Project: Solr
> Issue Type: New Feature
> Components: search
> Reporter: Yonik Seeley
> Fix For: 1.5
>
> Attachments: SOLR-64.patch
>
>
> Strict Facet Hierarchies... each tag has at most one parent (a tree).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SOLR-64) strict hierarchical facets
Posted by "Erik Hatcher (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12766070#action_12766070 ]
Erik Hatcher commented on SOLR-64:
----------------------------------
that's the current design of this feature, as shown by the examples above.
> strict hierarchical facets
> --------------------------
>
> Key: SOLR-64
> URL: https://issues.apache.org/jira/browse/SOLR-64
> Project: Solr
> Issue Type: New Feature
> Components: search
> Reporter: Yonik Seeley
> Fix For: 1.5
>
> Attachments: SOLR-64.patch, SOLR-64.patch
>
>
> Strict Facet Hierarchies... each tag has at most one parent (a tree).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SOLR-64) strict hierarchical facets
Posted by "Anıl Çetin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12766443#action_12766443 ]
Anıl Çetin commented on SOLR-64:
--------------------------------
Sorry I couldn't explain it I think;
for:
a_level1/a_level2/a_level3/a_level4
and
b_level1/b_level2/b_level3/b_level4
result:
a_level1
--> a_level1/a_level2
------> a_level1/a_level2/a_level3
-----------> a_level1/a_level2/a_level3/level4
b_level1/a_level1/a_level2/a_level3/level4
--> b_level1 / b_level2 / a_level1/a_level2/a_level3/level4
------> b_level1/b_level2/b_level3/ a_level1/a_level2/a_level3/level4
-----------> b_level1/b_level2/b_level3/b_level4/a_level1/a_level2/a_level3/level4
Actually it mixes the fields. Also, in some indexes (I don't know what causes/why) it gives error
HTTP Status 500 - null java.lang.StackOverflowError at java.nio.DirectByteBuffer.get(DirectByteBuffer.java:242) at java.nio.HeapByteBuffer.put(HeapByteBuffer.java:209) at sun.nio.ch.IOUtil.read(IOUtil.java:227) at sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:663) at org.apache.lucene.store.NIOFSDirectory$NIOFSIndexInput.readInternal(NIOFSDirectory.java:161) at org.apache.lucene.store.BufferedIndexInput.refill(BufferedIndexInput.java:157) at org.apache.lucene.store.BufferedIndexInput.readByte(BufferedIndexInput.java:38) at org.apache.lucene.store.IndexInput.readVInt(IndexInput.java:80) at org.apache.lucene.index.SegmentTermDocs.readNoTf(SegmentTermDocs.java:166) at org.apache.lucene.index.SegmentTermDocs.read(SegmentTermDocs.java:139) at org.apache.solr.search.SolrIndexSearcher.getDocSetNC(SolrIndexSearcher.java:685) at org.apache.solr.search.SolrIndexSearcher.getPositiveDocSet(SolrIndexSearcher.java:595) at org.apache.solr.search.SolrIndexSearcher.getPositiveDocSet(SolrIndexSearcher.java:585) at org.apache.solr.search.SolrIndexSearcher.numDocs(SolrIndexSearcher.java:1514) at org.apache.solr.request.SimpleFacets.getHierarchicalFacetCounts(SimpleFacets.java:619) at org.apache.solr.request.SimpleFacets.getHierarchicalFacetCounts(SimpleFacets.java:641) at
...............
......
org.apache.solr.request.SimpleFacets.getHierarchicalFacetCounts(SimpleFacets.java:641)
> strict hierarchical facets
> --------------------------
>
> Key: SOLR-64
> URL: https://issues.apache.org/jira/browse/SOLR-64
> Project: Solr
> Issue Type: New Feature
> Components: search
> Reporter: Yonik Seeley
> Fix For: 1.5
>
> Attachments: SOLR-64.patch, SOLR-64.patch
>
>
> Strict Facet Hierarchies... each tag has at most one parent (a tree).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SOLR-64) strict hierarchical facets
Posted by "Thibaut Lassalle (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-64?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thibaut Lassalle updated SOLR-64:
---------------------------------
Attachment: SOLR-64.patch
Update to apply cleanly against release 1.4
> strict hierarchical facets
> --------------------------
>
> Key: SOLR-64
> URL: https://issues.apache.org/jira/browse/SOLR-64
> Project: Solr
> Issue Type: New Feature
> Components: search
> Reporter: Yonik Seeley
> Fix For: 1.5
>
> Attachments: SOLR-64.patch, SOLR-64.patch, SOLR-64.patch
>
>
> Strict Facet Hierarchies... each tag has at most one parent (a tree).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SOLR-64) strict hierarchical facets
Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/SOLR-64?page=comments#action_12446675 ]
Yonik Seeley commented on SOLR-64:
----------------------------------
Strict Facet Hierarchies:
- a response format that can more efficiently encapsulate hierarchies
- maybe format flexible enough to encompass other hierarchies (non-tree, defined via solrconfig.xml, etc)
- strict hierarchy field faceting, with a single field value per document containing all the ordered constraints (a path)
- ability to select depth to return to the client
- perhaps an ability to select a variable depth based on the number of items selected at that node
- expand node if count > 100.... or maybe expand node if count > 10% of hits
http://www.nabble.com/Hierarchical-Facets--tf2560327.html#a7135353
> strict hierarchical facets
> --------------------------
>
> Key: SOLR-64
> URL: http://issues.apache.org/jira/browse/SOLR-64
> Project: Solr
> Issue Type: New Feature
> Components: search
> Reporter: Yonik Seeley
>
> Strict Facet Hierarchies... each tag has at most one parent (a tree).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (SOLR-64) strict hierarchical facets
Posted by "Erik Hatcher (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12733073#action_12733073 ]
Erik Hatcher commented on SOLR-64:
----------------------------------
Would it make sense to leverage payloads for level pruning? Encode the int level number as a payload and use that at search/faceting time - any advantages to that?
> strict hierarchical facets
> --------------------------
>
> Key: SOLR-64
> URL: https://issues.apache.org/jira/browse/SOLR-64
> Project: Solr
> Issue Type: New Feature
> Components: search
> Reporter: Yonik Seeley
> Fix For: 1.5
>
> Attachments: SOLR-64.patch, SOLR-64.patch
>
>
> Strict Facet Hierarchies... each tag has at most one parent (a tree).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SOLR-64) strict hierarchical facets
Posted by "Erik Hatcher (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12733071#action_12733071 ]
Erik Hatcher commented on SOLR-64:
----------------------------------
See http://wiki.apache.org/solr/HierarchicalFaceting for details on this approach and comparing to other approaches like SOLR-792
> strict hierarchical facets
> --------------------------
>
> Key: SOLR-64
> URL: https://issues.apache.org/jira/browse/SOLR-64
> Project: Solr
> Issue Type: New Feature
> Components: search
> Reporter: Yonik Seeley
> Fix For: 1.5
>
> Attachments: SOLR-64.patch, SOLR-64.patch
>
>
> Strict Facet Hierarchies... each tag has at most one parent (a tree).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SOLR-64) strict hierarchical facets
Posted by "Erik Hatcher (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-64?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Erik Hatcher updated SOLR-64:
-----------------------------
Attachment: SOLR-64.patch
Updated patch to trunk. Only real change was removing hiefacet field, and mapping the hierarchy type to *_h instead - to keep the schema from getting bloated with example fields.
> strict hierarchical facets
> --------------------------
>
> Key: SOLR-64
> URL: https://issues.apache.org/jira/browse/SOLR-64
> Project: Solr
> Issue Type: New Feature
> Components: search
> Reporter: Yonik Seeley
> Fix For: 1.5
>
> Attachments: SOLR-64.patch, SOLR-64.patch
>
>
> Strict Facet Hierarchies... each tag has at most one parent (a tree).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SOLR-64) strict hierarchical facets
Posted by "Lesiak Rémy (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12770027#action_12770027 ]
Lesiak Rémy commented on SOLR-64:
---------------------------------
Hi all,
I use the the Solr version 1.4-dev.
I want to apply this patch, but I have an error on the class SimpleFacet during the patch.
I have apply the patch manually. After I want reproduce the example of this page, but I obtained this result :
"facet_counts":{
"facet_queries":{},
"facet_fields":{
"hiefacet_h":[
"sub_facets",[
"A",1,
"path-A","A/",
"sub_facets",[
"B",1,
"path-B","A/B/",
"sub_facets",[
"E",1,
"path-E","A/B/E/",
"sub_facets",[
"B",1,
"path-B","A/B/E/B/",
"sub_facets",[
"B",1,
"path-B","A/B/E/B/B/",
"sub_facets",[
"D",1,
"path-D","A/B/E/B/B/D/",
"sub_facets",[
"E",1,
"path-E","A/B/E/B/B/D/E/",
"sub_facets",[
"A",1,
"path-A","A/B/E/B/B/D/E/A/",
"sub_facets",[
"B",1,
"path-B","A/B/E/B/B/D/E/A/B/",
"sub_facets",[
"E",1,
"path-E","A/B/E/B/B/D/E/A/B/E/",
"sub_facets",[
"A",1,
"path-A","A/B/E/B/B/D/E/A/B/E/A/",
"sub_facets",[
.... etc
> strict hierarchical facets
> --------------------------
>
> Key: SOLR-64
> URL: https://issues.apache.org/jira/browse/SOLR-64
> Project: Solr
> Issue Type: New Feature
> Components: search
> Reporter: Yonik Seeley
> Fix For: 1.5
>
> Attachments: SOLR-64.patch, SOLR-64.patch
>
>
> Strict Facet Hierarchies... each tag has at most one parent (a tree).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SOLR-64) strict hierarchical facets
Posted by "Benjamin Armintor (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-64?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Armintor updated SOLR-64:
----------------------------------
Attachment: SOLR-64.patch
If token streams are being re-used, the token streams produced by the HierarchicalTokenFilterFactory need to respond to being reset().
In particular, the StringBuilder it uses to build the facet values needs to be cleared on reset. I'm attaching a patch that resets the StringBuilder and the delegate TokenStream. It also includes some junit tests that cover a basic hierarchical facet search, and the handling of facet.depth and facet.prefix. It builds and tests against trunk rev 921562. I think this fixes the 1.4 issue.
> strict hierarchical facets
> --------------------------
>
> Key: SOLR-64
> URL: https://issues.apache.org/jira/browse/SOLR-64
> Project: Solr
> Issue Type: New Feature
> Components: search
> Reporter: Yonik Seeley
> Fix For: 1.5
>
> Attachments: SOLR-64.patch, SOLR-64.patch, SOLR-64.patch, SOLR-64.patch
>
>
> Strict Facet Hierarchies... each tag has at most one parent (a tree).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.