DQL to filter by non-zero length: Advert.location_query:* (does not work as a filter)
Or in Lucene: Advert.location_query:?*
Results are limited to 10,000 records, unless you use the scroll API which can paginate and also make parallel requests.
A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.
MySQL date time conversion functions:
Examples:
select name, from_unixtime(time_added, '%Y-%m-%d %h:%i')
from company
order by date_added desc
limit 10; -- list the most recently added companies
You may also omit the '%Y-%m-%d %h:%i' format string, to get the default format YYYY-MM-DD HH:MM:SS, e.g. `2023-09-07 09:43:51`