mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-05 20:48:22 +00:00
return the string for date types if passed for search
This commit is contained in:
parent
7726a4a9dd
commit
fe38cecabd
@ -207,6 +207,10 @@ public class DateFieldMapper extends NumberFieldMapper<Long> {
|
||||
*/
|
||||
@Override
|
||||
public Object valueForSearch(Object value) {
|
||||
if (value instanceof String) {
|
||||
// assume its the string that was indexed, just return it... (for example, with get)
|
||||
return value;
|
||||
}
|
||||
Long val = value(value);
|
||||
if (val == null) {
|
||||
return null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user