tuub / kitodo-mediaserver

Kitodo Mediaserver
GNU General Public License v3.0
7 stars 6 forks source link

Search works by indextime #278

Closed ponchofiesta closed 5 years ago

ponchofiesta commented 5 years ago

Actually we can search by exact values only. For a date field like indexTime this is not that useful. It should be possible to search like this: indexTime>"2019-01-01 12:00". This should also cover NULL values.

ponchofiesta commented 5 years ago

I renamed the KeyValueParser to ConditionParser. It now allows to parse operators between key and value like field>=123. You can use several operators for all fields.

If you compare a field with empty string (field="" or field!="") the WorkJpaSpecification will search for that empty string and for NULL.