Gravatar for daniel.reedy@tcw.com

Question by Daniel Reedy, May 8, 2015 2:44 PM

Sitecore media items indexed, but not in Search Page

We have hundreds of PDFs in Sitecore /sitecore/media library. They are indexed fine, because I can see them in CES Admin. However, not a single one is visible in the OTB Coveo Search Page template with OTB components:

  • Coveo Search Resources
  • Coveo Search

example: https://www.tcw.com/temp/testSearch#q=pdf

3 Replies
Gravatar for daniel.reedy@tcw.com

Answer by Daniel Reedy, May 21, 2015 11:52 AM

The answer from Coveo tech support was to use a different filter criteria.

In v7.2 March, this technique fails when applied to Media Lib items (but was said to be fixed in April): rule: "where the item is the specific item or one of its subitems" ex: "or where the item is the /sitecore/media library/Downloads/xyz item or one of its subitems"

In v7.2 March, this technique works when applied to Media Lib items: rule: "where specific field compares to specific value" ex: "or where fullpath field starts with /sitecore/media library/Downloads/xyz"

Tech support on the topic of [where the item is the specific item or one of its subitems]: "that rule will work on items from the media library only starting from version 1000 of Coveo for Sitecore (April 2015). This was a known issue in your version (955 February 2015)."

I think it had something to do with the funky path in Sitecore Media Lib items: "/~/media/.."

Gravatar for vseguin@coveo.com

Answer by Vincent Séguin, May 8, 2015 2:46 PM

Hi,

Have you looked at the permissions of a pdf document in the CES admin? Do they have anonymous allowed or do they have specific users set on them?

Thank you

Gravatar for daniel.reedy@tcw.com

Comment by Daniel Reedy, May 8, 2015 2:57 PM

yes, Anonymous access is allowed on the PDFs that I'm searching.

Gravatar for vseguin@coveo.com

Comment by Vincent Séguin, May 8, 2015 2:59 PM

If you check your Network tab while the query is being performed, what is the source that is targetted? (Should be in the "aq" parameter of what is sent to the index) Is it targetting the appropriate source?

Gravatar for daniel.reedy@tcw.com

Comment by Daniel Reedy, May 8, 2015 5:49 PM

@syssource==("Coveoproductionindex - APPCMS-LA02P-V-CMSProd")

…this is expected. Normal content (/sitecore/content) is being successfully indexed & searched. Items under /sitecore/media library get indexed okay, and can be searched from CES Admin okay; but don't make it to Sitecore. In fact, when I observe the CES Console, it shows zero results when I search for something under /media library.

Gravatar for vseguin@coveo.com

Comment by Vincent Séguin, May 9, 2015 3:49 PM

If i remember well, there's a default filter that filters everything that is under /sitecore/content… do you have the rule editor enabled ? If yes, you could remove the default rule. If not, you could just programatically change the query that is performed.

Gravatar for daniel.reedy@tcw.com

Comment by Daniel Reedy, May 11, 2015 11:28 AM

By default, a new Coveo Search Page has these rules: "where the item is the Content item or one of its subitems, and where the item has layout" I have tried it with these rules, with other rules, and with no rules. Just not seeing any Media Lib items (outside CES admin).

Gravatar for jflheureux@coveo.com

Answer by Jean-François L'Heureux, May 11, 2015 2:29 AM

In addition to the default filtering rule of a Coveo Search component, there's also a default configuration for this component that excludes media items and bucket items.

You can change its value by editing the properties of your Coveo Search component. Go to the "Advanced" section. Check the "Include media folders in search results" check box. Close the dialogs. Save your item.

Gravatar for daniel.reedy@tcw.com

Comment by Daniel Reedy, May 11, 2015 11:30 AM

wow, this one is so obvious. I thought for sure it would fix it, but it didn't. I selected the "Include media folders" option, saved, published, and even re-indexed a portion of the Media Library for fresh results. Still nothing. What am I missing?

Gravatar for jflheureux@coveo.com

Comment by Jean-François L'Heureux, May 12, 2015 9:48 AM

It just came to me that the option is for the items of type "media folder" and do not affect the "media items". Sorry for the confusion.

I suggest you contact Coveo support to troubleshoot this issue. They will need your Coveo for Sitecore configuration files, an output of the ShowConfig.aspx page and probably screenshots from your CES Index Browser as well in the process.

Gravatar for daniel.reedy@tcw.com

Comment by Daniel Reedy, May 12, 2015 1:41 PM

I have engaged them. thank you for your help.

Ask a question