lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com.INVALID>
Subject Re: Displaying a date field that is empty
Date Wed, 27 May 2015 08:40:11 GMT
Hi,

One approach if to use default value for that field. Missing values represented by that constant
value.

Other approach is to use a query to capture documents that do not have that field: 
+*:* -field:[* TO *]
I think, newly added exists(field) function query can be used too.

Ahmet



On Wednesday, May 27, 2015 11:23 AM, Zheng Lin Edwin Yeo <edwinyeozl@gmail.com> wrote:
Hi,

Would like to check, is there any method to index date that are empty, and
allow it to be searchable and be displayed as an empty field?

Currently, for my csv records, there's some records which has no date in
the date field, while others have. For those records with no dates, when I
search for these records, the date field is not return. I'll like to have
the date field to be return regardless if there's any date in it. The type
of the field is set to type="tdate".

Is this possible to be done?


Regards,
Edwin

Mime
View raw message