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 "Grant Ingersoll (JIRA)" <ji...@apache.org> on 2008/03/05 19:39:40 UTC

[jira] Created: (SOLR-497) SolrJ QueryResponse does not support date faceting results

SolrJ QueryResponse does not support date faceting results
----------------------------------------------------------

                 Key: SOLR-497
                 URL: https://issues.apache.org/jira/browse/SOLR-497
             Project: Solr
          Issue Type: Improvement
            Reporter: Grant Ingersoll
            Assignee: Grant Ingersoll
            Priority: Minor
             Fix For: 1.3


The QueryResponse provides getFacetFields for drilling down into facets.  It would also be handy to have similar info for facet dates.

The workaround now is to go through the higher level NamedList 

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


Re: [jira] Updated: (SOLR-497) SolrJ QueryResponse does not support date faceting results

Posted by Grant Ingersoll <gs...@apache.org>.
I will check it out today or tomorrow, hopefully.


On Mar 16, 2008, at 10:09 AM, Shalin Shekhar Mangar wrote:

> Hi Grant,
>
> Did you get a chance to look at this patch? Let me know if you've any
> suggestions that you need me to incorporate.
>
> On Tue, Mar 11, 2008 at 12:34 PM, Shalin Shekhar Mangar (JIRA)
> <ji...@apache.org> wrote:
>>
>>     [ https://issues.apache.org/jira/browse/SOLR-497?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel 
>>  ]
>>
>> Shalin Shekhar Mangar updated SOLR-497:
>> ---------------------------------------
>>
>>    Attachment: SOLR-497.patch
>>
>> With your permission Grant, here's a patch to add this functionality.
>>
>> Since the facet.date response is not a homogenous NamedList of  
>> Numbers, I added the non-number members of facet date response such  
>> as GAP and END as attributes in FacetField.java The rest of the  
>> facet date responses such as date values and facet.date.other  
>> params are handling as FacetField.Count objects
>>
>> QueryResponse has a new method getFacetDates which returns a list  
>> of FacetField (modified as above).
>>
>> A simple test with a xml response for testing has been added.
>>
>>
>>> SolrJ QueryResponse does not support date faceting results
>>> ----------------------------------------------------------
>>>
>>>                Key: SOLR-497
>>>                URL: https://issues.apache.org/jira/browse/SOLR-497
>>>            Project: Solr
>>>         Issue Type: Improvement
>>>           Reporter: Grant Ingersoll
>>>           Assignee: Grant Ingersoll
>>>           Priority: Minor
>>>            Fix For: 1.3
>>>
>>>        Attachments: SOLR-497.patch
>>
>>
>>>
>>>
>>> The QueryResponse provides getFacetFields for drilling down into  
>>> facets.  It would also be handy to have similar info for facet  
>>> dates.
>>
>> --
>> This message is automatically generated by JIRA.
>> -
>> You can reply to this email to add a comment to the issue online.
>>
>>
>
>
>
> -- 
> Regards,
> Shalin Shekhar Mangar.

--------------------------
Grant Ingersoll
http://www.lucenebootcamp.com
Next Training: April 7, 2008 at ApacheCon Europe in Amsterdam

Lucene Helpful Hints:
http://wiki.apache.org/lucene-java/BasicsOfPerformance
http://wiki.apache.org/lucene-java/LuceneFAQ






Re: [jira] Updated: (SOLR-497) SolrJ QueryResponse does not support date faceting results

Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
Hi Grant,

Did you get a chance to look at this patch? Let me know if you've any
suggestions that you need me to incorporate.

On Tue, Mar 11, 2008 at 12:34 PM, Shalin Shekhar Mangar (JIRA)
<ji...@apache.org> wrote:
>
>      [ https://issues.apache.org/jira/browse/SOLR-497?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
>
>  Shalin Shekhar Mangar updated SOLR-497:
>  ---------------------------------------
>
>     Attachment: SOLR-497.patch
>
>  With your permission Grant, here's a patch to add this functionality.
>
>  Since the facet.date response is not a homogenous NamedList of Numbers, I added the non-number members of facet date response such as GAP and END as attributes in FacetField.java The rest of the facet date responses such as date values and facet.date.other params are handling as FacetField.Count objects
>
>  QueryResponse has a new method getFacetDates which returns a list of FacetField (modified as above).
>
>  A simple test with a xml response for testing has been added.
>
>
>  > SolrJ QueryResponse does not support date faceting results
>  > ----------------------------------------------------------
>  >
>  >                 Key: SOLR-497
>  >                 URL: https://issues.apache.org/jira/browse/SOLR-497
>  >             Project: Solr
>  >          Issue Type: Improvement
>  >            Reporter: Grant Ingersoll
>  >            Assignee: Grant Ingersoll
>  >            Priority: Minor
>  >             Fix For: 1.3
>  >
>  >         Attachments: SOLR-497.patch
>
>
> >
>  >
>  > The QueryResponse provides getFacetFields for drilling down into facets.  It would also be handy to have similar info for facet dates.
>
>  --
>  This message is automatically generated by JIRA.
>  -
>  You can reply to this email to add a comment to the issue online.
>
>



-- 
Regards,
Shalin Shekhar Mangar.

[jira] Resolved: (SOLR-497) SolrJ QueryResponse does not support date faceting results

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

Grant Ingersoll resolved SOLR-497.
----------------------------------

    Resolution: Fixed

Committed revision 638357.  Thanks Shalin!

> SolrJ QueryResponse does not support date faceting results
> ----------------------------------------------------------
>
>                 Key: SOLR-497
>                 URL: https://issues.apache.org/jira/browse/SOLR-497
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: SOLR-497.patch
>
>
> The QueryResponse provides getFacetFields for drilling down into facets.  It would also be handy to have similar info for facet dates.

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


[jira] Resolved: (SOLR-497) SolrJ QueryResponse does not support date faceting results

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

Hoss Man resolved SOLR-497.
---------------------------

    Resolution: Fixed

false alarm ... the probably was evidently an old version of ant/junit that didn't know abouthte new @Test based JUnit tests.

> SolrJ QueryResponse does not support date faceting results
> ----------------------------------------------------------
>
>                 Key: SOLR-497
>                 URL: https://issues.apache.org/jira/browse/SOLR-497
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: SOLR-497.patch
>
>
> The QueryResponse provides getFacetFields for drilling down into facets.  It would also be handy to have similar info for facet dates.

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


[jira] Reopened: (SOLR-497) SolrJ QueryResponse does not support date faceting results

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

Hoss Man reopened SOLR-497:
---------------------------


FYI: the QueryResponseTest added by this patch has been failing in the nightly.sh build (but not the hudson build) since it was added.

reopening the issue until we figure out if it is a problem with teh coe added by this issue, or a larger underlying bug.

> SolrJ QueryResponse does not support date faceting results
> ----------------------------------------------------------
>
>                 Key: SOLR-497
>                 URL: https://issues.apache.org/jira/browse/SOLR-497
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: SOLR-497.patch
>
>
> The QueryResponse provides getFacetFields for drilling down into facets.  It would also be handy to have similar info for facet dates.

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


[jira] Updated: (SOLR-497) SolrJ QueryResponse does not support date faceting results

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

Shalin Shekhar Mangar updated SOLR-497:
---------------------------------------

    Attachment: SOLR-497.patch

With your permission Grant, here's a patch to add this functionality.

Since the facet.date response is not a homogenous NamedList of Numbers, I added the non-number members of facet date response such as GAP and END as attributes in FacetField.java The rest of the facet date responses such as date values and facet.date.other params are handling as FacetField.Count objects

QueryResponse has a new method getFacetDates which returns a list of FacetField (modified as above).

A simple test with a xml response for testing has been added.

> SolrJ QueryResponse does not support date faceting results
> ----------------------------------------------------------
>
>                 Key: SOLR-497
>                 URL: https://issues.apache.org/jira/browse/SOLR-497
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: SOLR-497.patch
>
>
> The QueryResponse provides getFacetFields for drilling down into facets.  It would also be handy to have similar info for facet dates.

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


[jira] Updated: (SOLR-497) SolrJ QueryResponse does not support date faceting results

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

Grant Ingersoll updated SOLR-497:
---------------------------------

    Description: The QueryResponse provides getFacetFields for drilling down into facets.  It would also be handy to have similar info for facet dates.  (was: The QueryResponse provides getFacetFields for drilling down into facets.  It would also be handy to have similar info for facet dates.

The workaround now is to go through the higher level NamedList )

> SolrJ QueryResponse does not support date faceting results
> ----------------------------------------------------------
>
>                 Key: SOLR-497
>                 URL: https://issues.apache.org/jira/browse/SOLR-497
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>             Fix For: 1.3
>
>
> The QueryResponse provides getFacetFields for drilling down into facets.  It would also be handy to have similar info for facet dates.

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