You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Tim Costermans (JIRA)" <ji...@apache.org> on 2012/12/01 20:21:58 UTC

[jira] [Comment Edited] (LUCENE-4009) Implement toString() method in TermsFilter

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

Tim Costermans edited comment on LUCENE-4009 at 12/1/12 7:20 PM:
-----------------------------------------------------------------

Hi Chris,
Sorry for the delay, I didn't notice your comment.
I'm ok with your changes.
You can commit this.

                
      was (Author: t.costermans):
    Hi Chris,
Sorry for the delay, I didn't notice you comment.
I'm ok with your changes.
You can commit this.

                  
> Implement toString() method in TermsFilter
> ------------------------------------------
>
>                 Key: LUCENE-4009
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4009
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: modules/other
>    Affects Versions: 3.5, 3.6
>            Reporter: Tim Costermans
>            Assignee: Chris Male
>            Priority: Trivial
>         Attachments: LUCENE-4009__implemented_toString()_method_in_TermsFilter_.patch, LUCENE-4009__Improved_previous_implementation_of__toString()_method_in_TermsFilter_+_added.patch, LUCENE-4009.patch
>
>
> LUCENE-1049 introduced a enhanced implementation of the toString() method in the BooleanFilter clause.
> This was an improvement, however I'm still seeing a lot Lucene filter classes not overriding the toString method resulting in a toString returning the classname and the hashcode of the object. 
> This can be useful sometimes, but it's totally not useful in my case.
> I want to see the properties set in the filters so I know which Lucene query was created.
> Now:
> BooleanFilter(+BooleanFilter(BooleanFilter(+org.apache.lucene.search.TermsFilter@ea81ba60 +org.apache.lucene.search.TermsFilter@26ea3cbc) BooleanFilter(+org.apache.lucene.search.TermsFilter@df621f09 +org.apache.lucene.search.TermsFilter@2f712446)))
> Wanted behavior:
> BooleanFilter(+BooleanFilter(BooleanFilter(+inStock:Y +barCode:12345678) BooleanFilter(+isHeavy:N +isDamaged:Y)))

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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