However, the search results are still returning images from the media section - despite me including the 'Image' media type in the excluded node type. I can filter these out pretty easily with the Razor script but would rather understand why they're being returned to begin with.
Does anyone know if this is a bug or are my config settings not right?
In theory it should not index image and folder. Can you paste your examine search code if you set the indextype to content then that will ignore media items from the search.
A little rough around the edges but here's the Razor code. It's not a straight forward search as it's searching both content nodes and media nodes (of type 'File' only - not images or folders). It also requires that members are logged in if they are to be able to see the file download links, otherwise they still get the search result but with a prompt to log in rather than a download link. It works great except for the fact that it's showing image media items in the search results. I've tried deleting the examine index and restarting the app pool etc but it still throws up images in the search results.
Prevent Examine indexing images
Hi,
I have a site search which needs to search several document types and some properties of the file media type. I've set up an index like this:
However, the search results are still returning images from the media section - despite me including the 'Image' media type in the excluded node type. I can filter these out pretty easily with the Razor script but would rather understand why they're being returned to begin with.
Does anyone know if this is a bug or are my config settings not right?
Thanks folks!
Dan,
In theory it should not index image and folder. Can you paste your examine search code if you set the indextype to content then that will ignore media items from the search.
Regards
Ismail
Hi Ismail,
A little rough around the edges but here's the Razor code. It's not a straight forward search as it's searching both content nodes and media nodes (of type 'File' only - not images or folders). It also requires that members are logged in if they are to be able to see the file download links, otherwise they still get the search result but with a prompt to log in rather than a download link. It works great except for the fact that it's showing image media items in the search results. I've tried deleting the examine index and restarting the app pool etc but it still throws up images in the search results.
Any ideas?
(This is a clean 4.7.1 install by the way - not an upgrade and not 4.7.1.1).
You should use SearchProviderCollection like stated in this post:
http://our.umbraco.org/forum/using/ui-questions/25608-Using-examine-search
Hope this helps someone
Hi
I am having umbraco 6.1.6 version, and insatalled ezsearch package.
Can any one help me out, to exclude folder names, .png, .jpg extensions etc from ezsearch result set.......
i need to retrive content(pages) and some media type (like .doc, .pdf ) only.
Now when I am searching I am getting pics, folder name, which I dont want to show it in ezsearch result.
Thanks in advance.
is working on a reply...