Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE: WIP state of Neos 9 compatibility #7

Draft
wants to merge 16 commits into
base: main
Choose a base branch
from
Draft

Conversation

skurfuerst
Copy link
Member

Architecture like ContentRepository.Core; NOT reusing any of Flowpack.Elasticsearch or Flowpack.Elasticsearch.ContentRepositoryAdaptor.

I am not sure whether we should re-use Neos.ContentRepository.Search (we'll see).

Architecture like ContentRepository.Core; NOT reusing any of Flowpack.Elasticsearch or Flowpack.Elasticsearch.ContentRepositoryAdaptor.

I am not sure whether we should re-use Neos.ContentRepository.Search (we'll see).
Comment on lines 66 to 95
'_removed':
search:
indexing: false
'_creationDateTime':
search:
indexing: false
'_lastModificationDateTime':
search:
indexing: false
'_lastPublicationDateTime':
search:
indexing: false
'_hiddenBeforeDateTime':
search:
indexing: false
'_hiddenAfterDateTime':
search:
indexing: false
'_path':
search:
indexing: false
'_nodeType':
search:
indexing: false
'_name':
search:
indexing: false
'_hidden':
search:
indexing: false

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These will all throw the exception: The property "PROPERTYNAME" on the subject was not accessible.

elasticSearchMapping:
type: date
format: 'date_time_no_millis'
indexing: '${(node.hiddenAfterDateTime ? Date.format(node.hiddenAfterDateTime, "Y-m-d\TH:i:sP") : null)}'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we already supporting hiddenBeforeDateTime and hiddenAfterDateTime? Isn't this feature missing?

Comment on lines +44 to +63
'neos_last_modification_date_time':
search:
elasticSearchMapping:
type: date
format: 'date_time_no_millis'
indexing: '${(node.lastModificationDateTime ? Date.format(node.lastModificationDateTime, "Y-m-d\TH:i:sP") : null)}'

'neos_last_publication_date_time':
search:
elasticSearchMapping:
type: date
format: 'date_time_no_millis'
indexing: '${(node.lastPublicationDateTime ? Date.format(node.lastPublicationDateTime, "Y-m-d\TH:i:sP") : null)}'

'neos_creation_date_time':
search:
elasticSearchMapping:
type: date
format: 'date_time_no_millis'
indexing: '${(node.creationDateTime ? Date.format(node.creationDateTime, "Y-m-d\TH:i:sP") : null)}'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those date properties are now located at node.timestamps

See: neos/neos-development-collection#4102

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants