Problem/Motivation
Indexing Drupal content, specifically a 'Document' content type that includes a file field. Used Elasticsearch to power the search and display results in a Drupal view.
Successfully indexed the content type fields and can see them in search results. To enhance search capabilities, Integrated Tika to extract text from file attachments.
While I can see the extracted text in Elasticsearch, I'm currently unable to establish a link between the attachment and its parent node. This is preventing me from displaying the node title in search results.
Steps to reproduce
Drupal version used : 10.2.3
Modules
search_api 8.x-1.31
search_api_attachments 9.0.2
Elasticsearch Connector:8.x-7.0-alpha4
Elasticsearch Connector Views :8.x-7.0-alpha4
1. Created a content type "Document" with title, file fields
2. Connect to a Elastic Search Server
3. Add fields for indexing both title and file fields for index and make sure we check the file attachment processors.
4. Set up a tika extractor via search api attachment config page
5. After indexing we could see the index values through elastic view plugin
Not able to display the node title of attachment row in drupal view.
Proposed resolution
I tried to resolve with following was
1. Add a custom view handler for setting relationship for view to link file id, file usage and node table
2. Able to get node relationship in view pre render but not sure about the performance.
Remaining tasks
Not Applicable
User interface changes
Not Applicable
API changes
Not Applicable
Data model changes
Not Applicable