Forums / Extensions / eZ Find / [Resolved] Check empty attribute in the filter

[Resolved] Check empty attribute in the filter

Author Message

jul tonfa

Monday 26 October 2009 9:05:19 am

Hi,

How can I check with the filter if the attribute is left empty ? I would like to get that working for a Date and time datatype.

I tried something like that

filter, array( concat( 'car/date_conception:') )

or

filter, array( array( 'car/date_conception','=','') )

But I can't get that to work.
Any idea for that ?

Thanks.

Jul

Nicolas Lescure

Thursday 26 November 2009 4:02:12 am

Hi,

Did you try : 

 filter, array( '-car/date_conception:[* TO *]') )

jul tonfa

Monday 08 March 2010 5:04:21 am

Hi,

Sorry, i didn't see that someone replied. Thank you Nicolas.

That is working for a text attribute but for a date we need to do that :

filter, array('car/date_conception:1970-01-01T01\:00\:00Z')

Paul Borgermans

Monday 15 March 2010 3:35:53 pm

This is fixed in eZ Find 2.2, release in a few weeks (March 30 normally)

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans