Lucene search index not taking widget contents #11289
-
Hi, It is the first time that use the Lucene fulltext search feature and I didn't get it how to search inside parts. If I use the blog theme I can search for text inside blog posts, I can also retrieve pages when searching for their titles. Now if add a widget inside a page (content type Page with a Flow part), and if I add a Paragraph widget inside, with a word "foobar", how should I setup the recipe to let me search for "foobar", in other terms how to add the FlowPart widgets contents to the Lucene index. I checked "Include this element in the index" everywhere and still not working. I think that I should use the "Use custom full-text" in the Page content type definition, but I don't know how to add the flowparts whith it. Any Ideas? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
My issue is exactly what is described here: |
Beta Was this translation helpful? Give feedback.
-
More details:
|
Beta Was this translation helpful? Give feedback.
-
I finally succed to get this to work. For anyone having the same issue to search the content inside widgets of a flowpart, you should specify the liquid template in "Use custom full-text" in the parent content type definition, in my case "Page": {{ Model.Content.FlowPart.Widgets | full_text_aspect }} Do not forget also to check "Include this element in the index" in child elements content type definition. I think this is something that should be enabled by default, or at least well explained with examples in the documentation here |
Beta Was this translation helpful? Give feedback.
I finally succed to get this to work. For anyone having the same issue to search the content inside widgets of a flowpart, you should specify the liquid template in "Use custom full-text" in the parent content type definition, in my case "Page":
{{ Model.Content.FlowPart.Widgets | full_text_aspect }}
Do not forget also to check "Include this element in the index" in child elements content type definition.
I think this is something that should be enabled by default, or at least well explained with examples in the documentation here
https://docs.orchardcore.net/en/dev/docs/guides/implement-fulltext-search/