Currently trying to expose a date filter for a view. When trying to set the format for just year(Y), it gives me different results than it would if I used the base format.

In my view I have two exposed filters for a date range ,"from" and "to",

From To
Mon, Jan 01, 1900 Sat, Jan 01, 1910

I get results applicable to that query.

If I change the format to just year I do not get any of the same results.

Comments

benjamin.merkley created an issue. See original summary.

drunken monkey’s picture

Status: Active » Postponed (maintainer needs more info)

Where do you set the date format? I don't see that option. Are you using another contrib module for this, like Date?
Also, can you look into the Views admin UI's preview and post the generated query here? (This feature was added to Search API on August 1, so you need a pretty recent dev release.) It might just be that Search API interprets the year value as a timestamp. Not sure how we would fix that, though.

legolasbo’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

I am closing this issue because information was requested over a year ago, but no new information has been provided since. Please reopen this issue with the requested information if you think that this issue is still relevant.