Mailing List Archive

[jira] [Created] (LUCENE-4009) Implement toString() method in TermsFilter
Tim Costermans created LUCENE-4009:

Summary: Implement toString() method in TermsFilter
Key: LUCENE-4009
Project: Lucene - Java
Issue Type: Bug
Affects Versions: 3.6, 3.5
Reporter: Tim Costermans
Priority: Minor

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.

BooleanFilter(+BooleanFilter(BooleanFilter( BooleanFilter(

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:!default.jspa
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail: