Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

Search Results - Show only documents.
Last Post 10/26/2011 8:07 PM by Mark Luffred. 3 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Mark Luffred
New Member
New Member
Posts:12


--
10/24/2011 8:18 PM
I setup a document library of thousands of PDF's. My documents are organized into folders. Each parent folder contains child folders in which the PDF's reside. The PDF documents are stored with the "description" and the "remarks" fields complete. All the documents follow this same structure.
Example...
parent folder: Brand Name 222

child folder: More Details Listed

PDF document:
Description: Lot 11234
Remarks: Brand Name 222 More Details Listed Lot 11234

I have added the DMX module to my standard DNN search results page so that a search can be done outside of the DMX module. I would like the search results page to only return results of PDF documents. I have customized my search results itemtemplate to display the results as follows:
<--

class="SubHead" style='display: <%#IIF(DataBinder.Eval(Container.DataItem, "EntryType")="Hyperlink", "none", "block")%>'>
Visible="<%# ShowDescription() %>" />


-->

This shows the text from the "remarks" field as a direct link to the document.

If someone does a search for "Brand Name 222" I do not want the parent or child folder to be displayed in my search results pane. All I want is the list of PDFs.

Any idea of how to do this?

I tried to modify the stored procedure for DMX_LimitSearch by adding the following code, then restart the application:
IF @CollectionId > -1
BEGIN
DELETE FROM dbo.DMX_SearchResults
FROM dbo.DMX_SearchResults sr
INNER JOIN dbo.DMX_Entries e ON sr.EntryId=e.EntryId
WHERE e.EntryType = 'Collection'
END

This didn't work, I still got folders.

Any ideas?
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
10/24/2011 8:59 PM
Hi Mark,

I can't see how you could do this without a code change. With the partial source version you can tweak the search.ascx codebehind to do what you like.

Peter
Mark Luffred
New Member
New Member
Posts:12


--
10/24/2011 10:43 PM
Can you be more specific. I have the source code, but nothing i've tried seems to work.
Mark Luffred
New Member
New Member
Posts:12


--
10/26/2011 8:07 PM
...disregard I found a work-around by changing the "QuicksearchTitleOnly" property to "remarks" instead of "title". None of the folders contain remarks.
You are not authorized to post a reply.