More in this section
Forums / General Discussions / Create A Search Index for a Document Library

Create A Search Index for a Document Library

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
5 posts, 0 answered
  1. Tom
    Tom avatar
    24 posts
    10 May 2013
    29 Oct 2015
    Link to this post

    I see where I can create a search index to search my "documents"   But how can I have it index only one of my libraries within my documents?  

    I have several libraries filled with PDFs under the Documents & Files file type.   I want to create a search index of only one library, not ALL my documents.

  2. Laurent Poulain
    Laurent Poulain avatar
    17 posts
    31 May 2017
    03 Nov 2015
    Link to this post

    The search index do not have the granularity to specify a particular library. That said, you can create a custom search results widget to filter the desired results. See's-blog/2015/10/12/troubleshooting-lucene-search-issues (Customized Search) for further details.

    Laurent Poulain
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
  3. Madona
    Madona avatar
    0 posts
    13 Apr 2015
    27 Jan 2017
    Link to this post

    My way didn't include overriding any widget, you can create search indexes for each doc lib you are willing to index (unique names for indexes). then override the DocumentInboundPipe and in the CanProcessItem method check what's the publish point name (this.PipeSettings.PublishingPoint.Name) and if it's equal to your search index name then only allow the documents that belong to the library you want to index.


    Let me know ifthat makes sense.

  4. Tim
    Tim avatar
    3 posts
    19 Apr 2013
    16 Jan in reply to Madona
    Link to this post
    I know this is an old post but could you show and example of how to do this? I'm trying to do the exact same thing.
  5. Madona
    Madona avatar
    0 posts
    13 Apr 2015
    16 Jan
    Link to this post

    See DocumentInboundPipeCustom screenshot for how you override the DocumentInboundPipe (sorry wasn't able to attach a cs / txt file)


    Then make sure you unregister/register documentinboundpipe and the custom one you created in global.asax --> Application_Start   as following:

    if (eventArgs.CommandName == "Bootstrapped")




    You might need to change namespaces and such depending on the structure where you put your file but hopefully that helps.





5 posts, 0 answered