Import from XML - assets not appearing in search

I took the advice from thread #9368 and used the 9368 script to extract data from one system and write it into Matrix.


It works rather nicely. I use XSLT to transform the source XML into the script XML. I then CRON the transform and the resulting script to do regular updates.



There is a problem. None of the resulting data turns up in search. This is true for Search assets and for the internal search. I’ve tried using the Re-Indexing Tool but it doesn’t work. The data is stored in Matrix as metadata fields against Data Record assets.



The script invokes the the following <action_type>s:


  • create_link
    [*]add_web_path
    [*]set_attribute_value (to set Name attribute)
    [*]set_metadata_schema
    [*]set_metadata_value
    [*]set_permission (to set public Read)


There isn't thorough documentation so I've gleaned what I could from the example XML and from performing exports*.

My version is 3.28.7**.

Many thanks
Will

* Some documentation would be lovely
**I know that I should probably update this, but the automatic updates script failed and I haven't had a chance to move it on since.

[quote]
I took the advice from thread #9368 and used the 9368 script to extract data from one system and write it into Matrix.



It works rather nicely. I use XSLT to transform the source XML into the script XML. I then CRON the transform and the resulting script to do regular updates.



There is a problem. None of the resulting data turns up in search. This is true for Search assets and for the internal search. I’ve tried using the Re-Indexing Tool but it doesn’t work. The data is stored in Matrix as metadata fields against Data Record assets.



The script invokes the the following <action_type>s:


  • create_link
    [*]add_web_path
    [*]set_attribute_value (to set Name attribute)
    [*]set_metadata_schema
    [*]set_metadata_value
    [*]set_permission (to set public Read)


There isn't thorough documentation so I've gleaned what I could from the example XML and from performing exports*.

My version is 3.28.7**.

Many thanks
Will

* Some documentation would be lovely
**I know that I should probably update this, but the automatic updates script failed and I haven't had a chance to move it on since.
[/quote]

Few questions,
1) what are the asset type you are importing from the XML?
2) when you say "I've tried using the Re-Indexing Tool but it doesn't work", what really happens? is it throwing errors?
This is very basic but have seen a lot of people miss out on this, is the Search Indexing "ON" in the Search Manger?


You might also want to have a look at 9368, just because you have mentioned about Data Record assets.

Ash

[quote]
Few questions,

  1. what are the asset type you are importing from the XML?
  2. when you say “I’ve tried using the Re-Indexing Tool but it doesn’t work”, what really happens? is it throwing errors?

    This is very basic but have seen a lot of people miss out on this, is the Search Indexing “ON” in the Search Manger?





    You might also want to have a look at #5344 Search Page does not return results for Data Source Record Set, just because you have mentioned about Data Record assets.



    Ash

    [/quote]



    Hi Ash,



    Search Indexing was turned off in Search Manager. This seems to have been the cause of the problem.



    thanks for pointing this out.



    Regards,

    Will