Index XML Files


(Ian Hirst) #1

We are using a script to automaticlly import xml files from an ftp location into our matrix and then use an xsl file to display them on the front end. All works okay, except that the xml files are not being indexed in the search when they are being imported.

 

If we manually import an xml file, or edit the contents of an existing xml file, then the contents are subsequently indexed and the pages are returned in the search results.

 

There doesn't appear to be an obvious trigger to reindex a branch of the tree after asset creation which would seem to be a solution to the problem. Can anyone offer any tips or thoughts on how to overcome this, without having to either edit the file, or manually reindex a chunk of the tree using the system tools?

 

Thanks.


(Nic Hubbard) #2

That actually sounds like a bug to me.

 

Was going to suggest setting up a cron job in the crontab and running the reindex reindexSearchIndex.php script, but it looks like that script needs the user to confirm before it starts.

 

http://manuals.matrix.squizsuite.net/search/chapters/indexing#Re-indexing-the-System-from-the-Server


(Ian Hirst) #3

Thanks Nic - we're using Matrix 4.8.2. Will look into the manual reindex and also check if any subsequent upgrades address the issue as a bug fix.