0

I am making a SharePoint 2010 web part that basically manages a document library of PDF documents.

One component that I am working on is searching through PDF documents. I tried a custom PDF dll (iTextSharp) that handles functions for PDF documents such as text extraction which then I did a "index_of" function on that for searching. However this had some bad side effects:

  • could get time_out errors for taking too long for all documents
  • the text extracted is inconsistent or had messed up characters and white spaces

My SharePoint 2010 has an ifilter for PDF documents, so it can search and index PDF files using the SharePoint search box. So is there a programmatic way utilize it in my web part? I want to be able to send a request to it, and maybe receive the data in maybe an XML format or something so I can build my own custom search result page.

Is this possible?

Thanks.

1 Answer 1

0

SharePoint Search has several options available though none are exactly what you are looking for. There's the core API, the Search Web Service, and there's the out of the box functionality for customizing search that when combined with Search Scopes and Managed Properties can be surprisingly powerful.

The core functionality is pretty solid so it is entirely possible that you might not even need to write your own web part, but instead merely tweak properties on copies of the standard web parts.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.