Indexing Content Fragment Data

Avatar

Avatar
Validate 1
Level 2
ignacio_mancill
Level 2

Likes

2 likes

Total Posts

21 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 3
Give Back
Boost 1
View profile

Avatar
Validate 1
Level 2
ignacio_mancill
Level 2

Likes

2 likes

Total Posts

21 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 3
Give Back
Boost 1
View profile
ignacio_mancill
Level 2

17-08-2018

Hi there,

I have a requirement to create an index where the indexRules contains the followed properties:

+indexRules

     + cq:Page

          + properties

               - jcr:content/jcr:title

               - jcr:content/jcr:description

               - jcr:content/component/fragment

               - jcr:content/metas

When I got the property of the fragment I need to index the properties (e.g. title) of the content fragment. The issue is to index the content of the fragment without touching the core (java), if possible.

Do you know how could it be possible to fetch the content fragment data in the same index?

Regards.

Replies

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,410 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,410 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

17-08-2018

What is your use case - are you indexing content fragments in order to query them more efficiently?

Avatar

Avatar
Validate 1
Level 7
Jitendra_S_Toma
Level 7

Likes

76 likes

Total Posts

617 posts

Correct reply

84 solutions
Top badges earned
Validate 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Validate 1
Level 7
Jitendra_S_Toma
Level 7

Likes

76 likes

Total Posts

617 posts

Correct reply

84 solutions
Top badges earned
Validate 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile
Jitendra_S_Toma
Level 7

17-08-2018

Hi,

Content fragment indexing is not different from regular content indexing. You can do that.

by the way, what is the use case?

Avatar

Avatar
Validate 1
Level 2
ignacio_mancill
Level 2

Likes

2 likes

Total Posts

21 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 3
Give Back
Boost 1
View profile

Avatar
Validate 1
Level 2
ignacio_mancill
Level 2

Likes

2 likes

Total Posts

21 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 3
Give Back
Boost 1
View profile
ignacio_mancill
Level 2

19-08-2018

Hi smacdonald,

Our requirement is to create a search tool for a new website. We need to index diferent page templates and one of them has the requirement to show a portion of the content fragment inside.

For example,

A page has an article that is created with content fragment and in the search we'll need to show the article name that is stored in the content fragment, in that case we will lauch a query to consume the results hiting our new index.

Regards.