Hi,
Thanks for the welcome and the link.
The actual AI semantic search and indexing is not the crucial part of the integration since we already have this platform in place.
What I'm looking for is information on way to integrate a 3rd party service with Joomla from an extension perspective.
Where do you plug into Joomla to get all the Joomla content automatically to add into your index search engine index? Do you use a plugin for this?
For example, let's say someone added a new page to a Joomla site, may it be a component or Joomla content page. Is there a way to keep track of this either via events, or some Joomla API that lists all joomla pages.
My current investigation is leading to getting all the menu items from the database. This however does not reveal the actual content of components which create menu items.
... initialization code...
This requires the URL to be retrieved using HTTP, downloading the HTML and indexing it.
Is there a way to get the actual content of the URL with some metadata or keywords, semantic information without resorting to HTTP.
Thanks for the welcome and the link.
The actual AI semantic search and indexing is not the crucial part of the integration since we already have this platform in place.
What I'm looking for is information on way to integrate a 3rd party service with Joomla from an extension perspective.
Where do you plug into Joomla to get all the Joomla content automatically to add into your index search engine index? Do you use a plugin for this?
For example, let's say someone added a new page to a Joomla site, may it be a component or Joomla content page. Is there a way to keep track of this either via events, or some Joomla API that lists all joomla pages.
My current investigation is leading to getting all the menu items from the database. This however does not reveal the actual content of components which create menu items.
... initialization code...
Code:
$nexai = new Nexai(apiKey);$query = $dbo->getQuery(true);$query->select($dbo->quoteName(array('id', 'title', 'alias')));$query->from($dbo->quoteName('#__menu'));$query->where($dbo->quoteName('published') . ' = 1'); // Assuming you only want published pages$dbo->setQuery($query);$results = $dbo->loadObjectList();if ($results) { echo "<ul>"; foreach ($results as $page) { $url = JRoute::_('index.php?Itemid=' . $page->id); $nexai->add($url, ['title' => $title]); } echo "</ul>";}
Is there a way to get the actual content of the URL with some metadata or keywords, semantic information without resorting to HTTP.
Statistics: Posted by nexai — Sat Apr 27, 2024 4:18 pm