Search asset using stored search


(autjoe) #1

Hi there,

I am trying to use stored search to find the asset by getting the asset id from the URL. However, it seems not providing with what I want.

I have set the search field: assetid, datasources using standard asset field - Asset ID and set the stored query location, assetid using Get Variable Name: assetid

Then I tried to call this webpath?assetid=6281, which is an existing asset. but no result found in the search page.

Am I missing anything? or if there is other way to do it?

Any advice would be really appreciated.

Thanks.

 

 


(Ashish Karelia) #2

Pretty basic thing but have seen a lot of user do this mistake.

Has the Search Indexing turned ON and has the asset you are trying to search for indexed?

 

The status of search indexing can be checked on Search Manager asset on admin interface under System Management asset.

 

If that is all OK then can you provide more information about the search page like: - what is the asset you are search for

- what matrix version are you using and what kind of DB it is.

- any other setup about the search page that we should be aware of?

 

 

Ash


(autjoe) #3

The site may need to be re-indexed. If not using search, is there any other way to get the dynamic asset id from a url and display its metadata info on a standard page?

thanks.


(Ashish Karelia) #4

If you are using query string to pass the assetid in the url then on the standard page's content you should be able to use global get keyword along with as_asset modifier to extract content from Asset's metadata.

 

Example: %globals_get_VAR-NAME^as_asset:asset_metadata_FIELD-NAME%

 

Ash


(autjoe) #5

Great, thanks!