Search page doesn't return any results


(Richard Crompton) #1

Hi

 

We're using Matrix 4.14.0

 

I've created a new area of our website to allow logged in users to create articles.

For this, I've used the asset builder and am populating a metadata field with %globals_user_asset_id%.

 

In the users logged in area, I'm displaying all their created articles (with status for them to manage).

For this I've used a search page and created a Search Field - see screen shot


And added it to the Stored Search area - see screen shot

 

I'm expecting the users created articles to be displayed on the search results page, but always get no results.

 

Can anyone point me in the right direction please? Squiz_Matrix_v4.14.0_Search_Fields.png (38.4 KB) Squiz_Matrix_v4.14.0_Stored_Search.png (35.4 KB)


(Nic Hubbard) #2

A few things:

  • Does Search work elsewhere on your site? Do you have indexing turned on?
  • Can you get the Search to work without the Stored Search?
  • Why are you using a Search Page with stored search instead of an Asset Listing?

I would change to using an Asset Listing with Dynamic Parameters for changing the root node source to the Current User asset ID. That should do the trick.


(Ashish Karelia) #3

To add to what Nic asked above, that database are you using? PSQL or Oracle?

Asking this because Oracle needs a few more steps to ensure the content indexing is being done for the Matrix search to work correctly.

 

Content not indexed seems to be the issue here.

 

Ash


(Bart Banda) #4

I think he wants to dynamically search all assets that have a metadata value of the current user's ID in them, for that you do need a stored search page.

 

Another thing to test is to see if you get any results at all if you change allow empty to Yes and then to an empty search.

 

Also make sure that metadata field is being indexed by the search manager. 

 

Also try regenerating the metadata schema or metadata on some of the assets you are searching for.

 

Also check the included statuses and whether or not the search asset can search for public assets only or is doing a group permissions check if the assets aren't live. 

 

Hope that helps. 


(Richard Crompton) #5

Thanks for all these suggestions.

 

Also make sure that metadata field is being indexed by the search manager.

Bart - In the search manager should I index the specific field in the respective metadata schema or the metadata schema itself and would that in turn index all assets that use that schema?


(Bart Banda) #6

You would specify the exact metadata field you are needing to index. 


(Richard Crompton) #7

Hi Bart

 

From following you suggestions, I've:

  • changed to allow empty to Yes
  • made sure that metadata field is being indexed by the search manager
  • regenerated the metadata schema
  • Included all statuses

But It still displays the no results bodycopy.

 

To re-iterate, I'm not displaying the initial search screen, just straight to the search results.

 

Thanks


(Nic Hubbard) #8

Hi Bart

 

From following you suggestions, I've:

  • changed to allow empty to Yes
  • made sure that metadata field is being indexed by the search manager
  • regenerated the metadata schema
  • Included all statuses

But It still displays the no results bodycopy.

 

To re-iterate, I'm not displaying the initial search screen, just straight to the search results.

 

Thanks

 

Did you try my suggestions?


(Bart Banda) #9

Yea try Nic's suggestions as well and see how you go, also, what is your term you have put in the stored search field value on the search page?

 

Also, are the assets you are searching for Public read granted or do you need special access to view them?


(Richard Crompton) #10

Hi

 

All the articles that get created are created in an articles folder (within the asset builder) - this is then linked to the various areas around our sites.

The search will display any article that the logged in user has created (regardless of status) - so for permissions I've set:

Read permissions - Public denied; All (group for registered users) granted

 

For the term - do you mean Source, if so Current User - assetid (as per screen shot)

 

Nic - I have indexing switched on and I've used a search because the articles aren't stored under each user.

If I removed the stored search and haven't got an initial search page - should the pages just return all the articles?

 

Thanks


(Richard Crompton) #11

I've just removed the stored search and tried again.

 

This time I get the initial search page, but when I click the search button I still get no results

 

Thanks


(Bart Banda) #12

Seeing as you are searching on non public assets, do you have "Perform Group Access Check" set to "Yes" on the details screen of the search page?


(Richard Crompton) #13

Hi Bart

 

Fantastic - that worked!

 

Thanks for your help