I was hoping to use a regex for the Data From Field setting to parse news articles searched from our profiles.
The ideal solution would seem to be translating the parsed information to the Modified Date field, for incorporation into the Search results ordering by date, but there doesn't seem to be any clear way of translating a parsed date such as "August 20th, 2006" to the Midified Date field.
Thank you for the suggestion, but the thing I'm having trouble with specifically is the following:
From all appearances, the date modified seems to be stored in the database as "yyyy-mm-dd hh:mm:ss". While the day and year can be pulled from the document and put into the date modified, there doesn't seem to be a way to translate the month field from a semantic representation to a numerical one.
One thought I'm having is possibly trying to implement the "Additional Fields" feature that was added with the last patch, but there isn't much documentation explaining it's implementation.
The date parser can handle the format you mentioned with the exception of the "th" after the day number. The search and replace I suggested removes that so the date should parse correctly into the database.
The regex you suggested worked great, and it did indeed translate over to date modified perfectly.
While this is a huge step forward in things for indexing, sorting the results by date seems to throw out a lot of the search logic. The additional fields option added with the last patch has a cryptic "Sortable" option next to them.
Is it possible to pull the dates and instead of putting them into date modified, put them in a new field and weight it's relevancy into the existing search metrics?
I tried to play around with this, but when I directed the regex to the extra field I created, it didn't show up anywhere when I checked what was indexed from the site, and there was no weighting option in the search settings for the extra field.
I'm just wondering about the status of the feature discussed in response 6 in this thread. Was this released? Is it still in development? As far as I'm aware I have the most updated scripts and I don't believe this functionality has been added.