I’m trying to implement indexing (EDS with da.live authoring) and facing some issues. I have two pages I want to index and have followed the recommended steps, but the elements are still not being indexed. Here’s what I’ve done:
1. Created a custom helix-query.yaml (attached)
indices:
blogs:
include:
- '/faculty/**'
exclude:
- '/**.json'
target: /query-index.json
properties:
Name:
select: main > div > div > div:nth-of-type(2) > div
value: textContent(el)
Designation:
select: main > div > div > div:nth-of-type(3) > div
value: textContent(el)
Phone:
select: main > div > div > div:nth-of-type(4) > div:nth-of-type(2)
value: textContent(el)
Email:
select: main > div > div > div:nth-of-type(4) > div:nth-of-type(1) > a
value: textContent(el)
courses:
include:
- /courses/program-list
target: /courses
properties:
code:
selectFirst: div:nth-of-type(1)
value: textContent(el)
title:
selectFirst: div:nth-of-type(2)
value: textContent(el)
description:
selectFirst: div:nth-of-type(3)
value: textContent(el)
type:
selectFirst: div:nth-of-type(4)
value: textContent(el)
mode:
selectFirst: div:nth-of-type(5)
value: textContent(el)
campuses:
selectFirst: div:nth-of-type(6)
value: textContent(el)
duration:
selectFirst: div:nth-of-type(7)
value: textContent(el)
area:
selectFirst: div:nth-of-type(8)
value: textContent(el)
2. I also created a query-index.xlsx in the root section (da.live).
3. Added a sheet named raw_index inside it.
4.Named the first column as path.
I am basically putting in data via document like the following image. Now this data is available in html layout in /courses/program-list and I want to have this indexed and get the data in JSON so that I can accordingly play with it.
HTML layout (taken from page source code for courses/program-list)
<div class="courses-list">
<div>
<div>## Course Metadata</div>
</div>
<div>
<div>Program Code</div>
<div>Title</div>
<div>Description</div>
<div>Program Type</div>
<div>Program Mode</div>
<div>Available Campuses</div>
<div>Program Duration</div>
<div>Area of Study</div>
</div>
<div>
<div>BB-ARTBUS2</div>
<div>Bachelor of Arts/Bachelor of Business</div>
<div>A double degree program designed to develop critical thinking and business acumen, preparing students for dynamic roles in global industries.</div>
<div>Bachelor</div>
<div>Offline</div>
<div>Hawthorn</div>
<div>"Full Time, Part Time"</div>
<div>
<p>"Business",</p>
<p>"Arts, Humanities and Social Sciences"</p>
</div>
</div>
<div>
<div>BA-DESF</div>
<div>Bachelor of Design (Fashion)</div>
<div>Students conceptualise and prototype innovative fashion designs while exploring sustainability and advanced textile technologies.</div>
<div>Bachelor</div>
<div>Offline</div>
<div>Hawthorn</div>
<div>"Full Time</div>
<div>"Design"</div>
</div>
<div>
<div>22594VIC</div>
<div>Diploma of Justice</div>
<div>Help combat discrimination, inequality, and abuses of power with a Diploma of Justice. We’ll teach you how the Victorian criminal justice system works – the theory and practice behind it – as well as how to manage adult offenders and work within family violence circumstances. Graduate with confidence to begin your career.</div>
<div>Diploma</div>
<div>Offline</div>
<div>Hawthorn</div>
<div>"Full Time, Part Time"</div>
<div>
<p>"Law",</p>
<p>"Arts, Humanities and Social Sciences"</p>
</div>
</div>
<div>
<div>BA-NUR</div>
<div>Bachelor of Nursing</div>
<div>Our Bachelor of Nursing prepares you for the diversity and complexities of 21st century nursing.<br><br>Here, you'll benefit from our focus on technology and innovation from year 1, and our small class sizes which provide more individualised support. Your clinical skills will be developed safely using simulation technology and realistic case studies.</div>
<div>Bachelor</div>
<div>Offline</div>
<div>Multiple</div>
<div>"Full Time, Part Time"</div>
<div>"Nursing"</div>
</div>
</div>
Note : Creating a spreadsheet with the programs and then exposing as JSON and in turn getting the data was rejected during pitch. SO I only have to stick to this document based authoring and somehow get to index it.
Any help will be appreciated. Thanks!
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @ArindamCh
Reach out to da.live community at https://discord.com/channels/1131492224371277874/1281270255427256544
Views
Replies
Total Likes
Hi @ArindamCh
Reach out to da.live community at https://discord.com/channels/1131492224371277874/1281270255427256544
Views
Replies
Total Likes
Views
Likes
Replies