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 2009/10/05 20:00:32 UTC

[jira] Created: (SOLR-1492) Can't facet Trie fields with precisionSteps

Can't facet Trie fields with precisionSteps
-------------------------------------------

                 Key: SOLR-1492
                 URL: https://issues.apache.org/jira/browse/SOLR-1492
             Project: Solr
          Issue Type: Bug
    Affects Versions: 1.4
            Reporter: Yonik Seeley
            Assignee: Yonik Seeley
             Fix For: 1.4


A known limitation - can't facet on multi-part trie fields.


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


[jira] Resolved: (SOLR-1492) Can't facet Trie fields with precisionSteps

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

Yonik Seeley resolved SOLR-1492.
--------------------------------

    Resolution: Fixed

committed.

> Can't facet Trie fields with precisionSteps
> -------------------------------------------
>
>                 Key: SOLR-1492
>                 URL: https://issues.apache.org/jira/browse/SOLR-1492
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Yonik Seeley
>            Assignee: Yonik Seeley
>             Fix For: 1.4
>
>         Attachments: SOLR-1492.patch, SOLR-1492.patch, SOLR-1492.patch, SOLR-1492.patch, SOLR-1492.patch
>
>
> A known limitation - can't facet on multi-part trie fields.

-- 
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-1492) Can't facet Trie fields with precisionSteps

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12762332#action_12762332 ] 

Yonik Seeley edited comment on SOLR-1492 at 10/5/09 12:55 PM:
--------------------------------------------------------------

Updated patch with stats support.

edit: ignore changes to the stats tests for now - work in progress.

      was (Author: yseeley@gmail.com):
    Updated patch with stats support.
  
> Can't facet Trie fields with precisionSteps
> -------------------------------------------
>
>                 Key: SOLR-1492
>                 URL: https://issues.apache.org/jira/browse/SOLR-1492
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Yonik Seeley
>            Assignee: Yonik Seeley
>             Fix For: 1.4
>
>         Attachments: SOLR-1492.patch, SOLR-1492.patch
>
>
> A known limitation - can't facet on multi-part trie fields.

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


[jira] Updated: (SOLR-1492) Can't facet Trie fields with precisionSteps

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

Shalin Shekhar Mangar updated SOLR-1492:
----------------------------------------

    Attachment: SOLR-1492.patch

Tests for faceting added on top of Yonik's latest patch.

Date faceting does not work correctly.

> Can't facet Trie fields with precisionSteps
> -------------------------------------------
>
>                 Key: SOLR-1492
>                 URL: https://issues.apache.org/jira/browse/SOLR-1492
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Yonik Seeley
>            Assignee: Yonik Seeley
>             Fix For: 1.4
>
>         Attachments: SOLR-1492.patch, SOLR-1492.patch, SOLR-1492.patch
>
>
> A known limitation - can't facet on multi-part trie fields.

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


[jira] Commented: (SOLR-1492) Can't facet Trie fields with precisionSteps

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

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

I guess I was solving the wrong problems in SOLR-1483 :)

I'll add some tests.

> Can't facet Trie fields with precisionSteps
> -------------------------------------------
>
>                 Key: SOLR-1492
>                 URL: https://issues.apache.org/jira/browse/SOLR-1492
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Yonik Seeley
>            Assignee: Yonik Seeley
>             Fix For: 1.4
>
>         Attachments: SOLR-1492.patch
>
>
> A known limitation - can't facet on multi-part trie fields.

-- 
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-1492) Can't facet Trie fields with precisionSteps

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12762341#action_12762341 ] 

Yonik Seeley edited comment on SOLR-1492 at 10/5/09 1:15 PM:
-------------------------------------------------------------

bq. Date faceting does not work correctly.

Really?  It should... I added support for date faceting on trie fields long ago.  What doesn't work?
edit: Or do you mean normal faceting on a trie date field (as opposed to date faceting) doesn't work?

      was (Author: yseeley@gmail.com):
    bq. Date faceting does not work correctly.

Really?  It should... I added support for date faceting on trie fields long ago.  What doesn't work?
  
> Can't facet Trie fields with precisionSteps
> -------------------------------------------
>
>                 Key: SOLR-1492
>                 URL: https://issues.apache.org/jira/browse/SOLR-1492
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Yonik Seeley
>            Assignee: Yonik Seeley
>             Fix For: 1.4
>
>         Attachments: SOLR-1492.patch, SOLR-1492.patch, SOLR-1492.patch
>
>
> A known limitation - can't facet on multi-part trie fields.

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


[jira] Commented: (SOLR-1492) Can't facet Trie fields with precisionSteps

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12762450#action_12762450 ] 

Yonik Seeley commented on SOLR-1492:
------------------------------------

It appears that just the normal stats.field doesn't work with field types other than plain int (i.e. not sortable).

> Can't facet Trie fields with precisionSteps
> -------------------------------------------
>
>                 Key: SOLR-1492
>                 URL: https://issues.apache.org/jira/browse/SOLR-1492
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Yonik Seeley
>            Assignee: Yonik Seeley
>             Fix For: 1.4
>
>         Attachments: SOLR-1492.patch, SOLR-1492.patch, SOLR-1492.patch, SOLR-1492.patch
>
>
> A known limitation - can't facet on multi-part trie fields.

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


[jira] Updated: (SOLR-1492) Can't facet Trie fields with precisionSteps

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

Shalin Shekhar Mangar updated SOLR-1492:
----------------------------------------

    Attachment: SOLR-1492.patch

bq. I'm trying date faceting (facet.date) and the counts seem to be wrong (I'm expecting 2 but getting 4 back)

Of course it will give 4 because the upperbound is inclusive! OK, all tests pass.

> Can't facet Trie fields with precisionSteps
> -------------------------------------------
>
>                 Key: SOLR-1492
>                 URL: https://issues.apache.org/jira/browse/SOLR-1492
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Yonik Seeley
>            Assignee: Yonik Seeley
>             Fix For: 1.4
>
>         Attachments: SOLR-1492.patch, SOLR-1492.patch, SOLR-1492.patch, SOLR-1492.patch
>
>
> A known limitation - can't facet on multi-part trie fields.

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


[jira] Commented: (SOLR-1492) Can't facet Trie fields with precisionSteps

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

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

I'm trying date faceting (facet.date) and the counts seem to be wrong (I'm expecting 2 but getting 4 back). See TestTrie in my patch. I'm trying to figure it out.

Normal faceting on a trie date field works fine.

> Can't facet Trie fields with precisionSteps
> -------------------------------------------
>
>                 Key: SOLR-1492
>                 URL: https://issues.apache.org/jira/browse/SOLR-1492
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Yonik Seeley
>            Assignee: Yonik Seeley
>             Fix For: 1.4
>
>         Attachments: SOLR-1492.patch, SOLR-1492.patch, SOLR-1492.patch
>
>
> A known limitation - can't facet on multi-part trie fields.

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


[jira] Updated: (SOLR-1492) Can't facet Trie fields with precisionSteps

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

Yonik Seeley updated SOLR-1492:
-------------------------------

    Attachment: SOLR-1492.patch

Inspired by SOLR-1483, here's a simple hacky patch that allows faceting on multi-part trie fields so we can remove another "exception".

I've tested manually, but unit tests would be nice.

> Can't facet Trie fields with precisionSteps
> -------------------------------------------
>
>                 Key: SOLR-1492
>                 URL: https://issues.apache.org/jira/browse/SOLR-1492
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Yonik Seeley
>            Assignee: Yonik Seeley
>             Fix For: 1.4
>
>         Attachments: SOLR-1492.patch
>
>
> A known limitation - can't facet on multi-part trie fields.

-- 
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-1492) Can't facet Trie fields with precisionSteps

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

Shalin Shekhar Mangar edited comment on SOLR-1492 at 10/5/09 1:41 PM:
----------------------------------------------------------------------

bq. I'm trying date faceting (facet.date) and the counts seem to be wrong (I'm expecting 2 but getting 4 back)

Of course it will give 4 because the upperbound is inclusive! OK, TestTrie passes.

      was (Author: shalinmangar):
    bq. I'm trying date faceting (facet.date) and the counts seem to be wrong (I'm expecting 2 but getting 4 back)

Of course it will give 4 because the upperbound is inclusive! OK, all tests pass.
  
> Can't facet Trie fields with precisionSteps
> -------------------------------------------
>
>                 Key: SOLR-1492
>                 URL: https://issues.apache.org/jira/browse/SOLR-1492
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Yonik Seeley
>            Assignee: Yonik Seeley
>             Fix For: 1.4
>
>         Attachments: SOLR-1492.patch, SOLR-1492.patch, SOLR-1492.patch, SOLR-1492.patch
>
>
> A known limitation - can't facet on multi-part trie fields.

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


[jira] Commented: (SOLR-1492) Can't facet Trie fields with precisionSteps

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12762461#action_12762461 ] 

Yonik Seeley commented on SOLR-1492:
------------------------------------

Commented in the wrong issue before:
Found it... in UnInvertedField.getStats(), the FieldType was being overwritten by the type of the facet fields. 

> Can't facet Trie fields with precisionSteps
> -------------------------------------------
>
>                 Key: SOLR-1492
>                 URL: https://issues.apache.org/jira/browse/SOLR-1492
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Yonik Seeley
>            Assignee: Yonik Seeley
>             Fix For: 1.4
>
>         Attachments: SOLR-1492.patch, SOLR-1492.patch, SOLR-1492.patch, SOLR-1492.patch
>
>
> A known limitation - can't facet on multi-part trie fields.

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


[jira] Updated: (SOLR-1492) Can't facet Trie fields with precisionSteps

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

Yonik Seeley updated SOLR-1492:
-------------------------------

    Attachment: SOLR-1492.patch

Updated patch with stats support.

> Can't facet Trie fields with precisionSteps
> -------------------------------------------
>
>                 Key: SOLR-1492
>                 URL: https://issues.apache.org/jira/browse/SOLR-1492
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Yonik Seeley
>            Assignee: Yonik Seeley
>             Fix For: 1.4
>
>         Attachments: SOLR-1492.patch, SOLR-1492.patch
>
>
> A known limitation - can't facet on multi-part trie fields.

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


[jira] Updated: (SOLR-1492) Can't facet Trie fields with precisionSteps

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

Yonik Seeley updated SOLR-1492:
-------------------------------

    Attachment: SOLR-1492.patch

OK, this patch:
 - includes SOLR-1491 so single valued single part trie field faceting is handled by the field cache faceting code
 - adds support for multi-precision trie fields to UnUnvertedField faceting
 - adds support for multi-precision trie fields to UnUnvertedField statistics
 - adds "missing" functionality to UnUnvertedField stats.facet and fixes other bugs in multi-valued stats.facet
 - forces the use of UnInvertedField for both faceting and stats for multi-precision trie fields (since Lucene StringIndex doesn't support)

> Can't facet Trie fields with precisionSteps
> -------------------------------------------
>
>                 Key: SOLR-1492
>                 URL: https://issues.apache.org/jira/browse/SOLR-1492
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Yonik Seeley
>            Assignee: Yonik Seeley
>             Fix For: 1.4
>
>         Attachments: SOLR-1492.patch, SOLR-1492.patch, SOLR-1492.patch, SOLR-1492.patch, SOLR-1492.patch
>
>
> A known limitation - can't facet on multi-part trie fields.

-- 
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-1492) Can't facet Trie fields with precisionSteps

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12762394#action_12762394 ] 

Yonik Seeley edited comment on SOLR-1492 at 10/5/09 3:02 PM:
-------------------------------------------------------------

Hmmm, stats.facet is failing for the trie fields... I'm looking into it.

Update: this isn't related to trie... the multiValued stats stuff is buggy and wouldn't work with sortable fields either - the tests only covered plain int.

      was (Author: yseeley@gmail.com):
    Hmmm, stats.facet is failing for the trie fields... I'm looking into it.
  
> Can't facet Trie fields with precisionSteps
> -------------------------------------------
>
>                 Key: SOLR-1492
>                 URL: https://issues.apache.org/jira/browse/SOLR-1492
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Yonik Seeley
>            Assignee: Yonik Seeley
>             Fix For: 1.4
>
>         Attachments: SOLR-1492.patch, SOLR-1492.patch, SOLR-1492.patch, SOLR-1492.patch
>
>
> A known limitation - can't facet on multi-part trie fields.

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


[jira] Commented: (SOLR-1492) Can't facet Trie fields with precisionSteps

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12762327#action_12762327 ] 

Yonik Seeley commented on SOLR-1492:
------------------------------------

Hey, more good news... stats now works with both singleValued and multiValued trie fields after this patch (I assume because the stats component piggybacks off of UnInvertedField, and it also mistakenly thinks all trie based fields are multiValued).

We should be able to get rid of both disadvantages that the trie fields had in comparison to the older sortable fields.

> Can't facet Trie fields with precisionSteps
> -------------------------------------------
>
>                 Key: SOLR-1492
>                 URL: https://issues.apache.org/jira/browse/SOLR-1492
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Yonik Seeley
>            Assignee: Yonik Seeley
>             Fix For: 1.4
>
>         Attachments: SOLR-1492.patch
>
>
> A known limitation - can't facet on multi-part trie fields.

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


[jira] Commented: (SOLR-1492) Can't facet Trie fields with precisionSteps

Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12762401#action_12762401 ] 

Grant Ingersoll commented on SOLR-1492:
---------------------------------------

stats.facet doesn't work for multivalued fields at all, unless you fixed that here.

> Can't facet Trie fields with precisionSteps
> -------------------------------------------
>
>                 Key: SOLR-1492
>                 URL: https://issues.apache.org/jira/browse/SOLR-1492
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Yonik Seeley
>            Assignee: Yonik Seeley
>             Fix For: 1.4
>
>         Attachments: SOLR-1492.patch, SOLR-1492.patch, SOLR-1492.patch, SOLR-1492.patch
>
>
> A known limitation - can't facet on multi-part trie fields.

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


[jira] Commented: (SOLR-1492) Can't facet Trie fields with precisionSteps

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12762394#action_12762394 ] 

Yonik Seeley commented on SOLR-1492:
------------------------------------

Hmmm, stats.facet is failing for the trie fields... I'm looking into it.

> Can't facet Trie fields with precisionSteps
> -------------------------------------------
>
>                 Key: SOLR-1492
>                 URL: https://issues.apache.org/jira/browse/SOLR-1492
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Yonik Seeley
>            Assignee: Yonik Seeley
>             Fix For: 1.4
>
>         Attachments: SOLR-1492.patch, SOLR-1492.patch, SOLR-1492.patch, SOLR-1492.patch
>
>
> A known limitation - can't facet on multi-part trie fields.

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


[jira] Commented: (SOLR-1492) Can't facet Trie fields with precisionSteps

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12762341#action_12762341 ] 

Yonik Seeley commented on SOLR-1492:
------------------------------------

bq. Date faceting does not work correctly.

Really?  It should... I added support for date faceting on trie fields long ago.  What doesn't work?

> Can't facet Trie fields with precisionSteps
> -------------------------------------------
>
>                 Key: SOLR-1492
>                 URL: https://issues.apache.org/jira/browse/SOLR-1492
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Yonik Seeley
>            Assignee: Yonik Seeley
>             Fix For: 1.4
>
>         Attachments: SOLR-1492.patch, SOLR-1492.patch, SOLR-1492.patch
>
>
> A known limitation - can't facet on multi-part trie fields.

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