-
-
Notifications
You must be signed in to change notification settings - Fork 254
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
[Bug] In a recursive SOLR_RELATION only one element from tt_content gets indexed into the solr core #2743
Comments
Ok, I found issue #2147 but this is NOT a duplicate. |
Ok, I got it! Class: ApacheSolrForTypo3\Solr\ContentObject\Relation There you con find the following:
Obviously the array_pop() makes the problem.
And now all functions as expected! |
The better way is to respect also the multiValue parameter of SOLR_RELATION:
Greetings |
@haraldwitt thanks for reporting this issue. |
Hi @dkd-kaehm, |
@haraldwitt |
I had the same issue: I have a model "section" with an inline relation to recipe. The "recipe" model has an inline relation to ingredient: section -> recipe -> ingredient without the bugfix this does not work:
I get only one in ingredient!
here I get all ingredients. After applying your Bugfix the first code also returns all ingredients!! |
@toco3 and @haraldwitt please checkout the latest state and give a feedback. |
@haraldwitt FYI Your #2745 pull request is gone, because of fork deletion. |
@haraldwitt, @cehret |
@dkd-kaehm |
@dkd-kaehm |
@haraldwitt Top. |
I have a custom table "offers" which contains a field "product_uid" pointing to the product table.
I have the other custom table "products" with the field "content_elements" pointing to tt_content.
"content_elements" is an inline element in the same manner tx_news it does.
Now I want to index the content elements as SOLR_CONTENT with an indexing configuration for "offers". Why that? The reason is, that "offers" contains an endtime-field which is very important for the search results!
My index configuration looks as follows:
Using this, only the bodytext of the LAST related record of tt_content will appear in the content-field of the solr core_de.
But when indexing "products", the bodytext of ALL related records will be found in the solr core_de.
The configuration for products:
But this is not suittable for me because of the missing endtime-field in products.
The text was updated successfully, but these errors were encountered: