-
Notifications
You must be signed in to change notification settings - Fork 2
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
NGSTACK-843 page indexing implementation from fina + FieldMapper impl… #10
base: master
Are you sure you want to change the base?
Conversation
22d61fa
to
c1548a8
Compare
lib/Container/Compiler/AggregateElasticsearchContentFieldMapperMapperPass.php
Outdated
Show resolved
Hide resolved
lib/Core/Search/Elasticsearch/DocumentMapper/BlockFieldMapper.php
Outdated
Show resolved
Hide resolved
lib/Core/Search/Elasticsearch/DocumentMapper/BlockFieldMapper/Aggregate.php
Outdated
Show resolved
Hide resolved
lib/Resources/config/search/common/layouts_page_text_indexing.yaml
Outdated
Show resolved
Hide resolved
lib/Resources/config/search/elastic_search/document_factory.yaml
Outdated
Show resolved
Hide resolved
…ementation for elasticsearch
…ndexing configuration
/** | ||
* This compiler pass will register elastic search field mappers. | ||
*/ | ||
final class ElasticsearchExtensibleDocumentFactoryPass implements CompilerPassInterface |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All of this can be moved to YAML configuration - it should be always active.
use const XML_HTML_DOCUMENT_NODE; | ||
use const XML_TEXT_NODE; | ||
|
||
class PageTextExtractor extends \Netgen\IbexaSearchExtra\Core\Search\Common\PageTextExtractor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename to NativePageTextExtractor
.
*/ | ||
public function extractPageText(int $contentId, string $languageCode): array | ||
{ | ||
$siteConfig = $this->siteAccessConfigResolver->getSiteConfigForContent($contentId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be moved below cache checks as it's not needed before.
@kmiocic please integrate code style from Site API and apply it on the affected files here. We will eventually need to apply it to the whole codebase, but that's too big a change for this PR and will need to be done separately: https://github.com/netgen/ibexa-site-api/blob/master/.php-cs-fixer.php |
efd39bc
to
e5248c7
Compare
…ementation for elasticsearch