Search text in document of sharepoint library

I am trying to write a program which will fetch the word document from sharepoint library and check if a metadata(term set) e.g.
"Movies" exists in the document or not. I need to know if there is any way I can read a document? Currently I get search to use interop assembly. I have to download the document on the server for that, Is there any other way in which I can read document
from the library itself without downloading and check if the word "Movies" is present in it. Using Sharepoint 2013.

hi
the way you choose is too complicated: you will need to open the documents by yourself programmatically and analyze its content. Standard Sharepoint search crawler is already integrated with Office documents (and in 2013 version with pdf without additional
configurations), i.e. when it crawls the content it checks not only documents names but also content inside these documents.
So if you only need to display list of documents based on the search query, use OTB search. If you need to do something with the search results programmatically, you can make search queries programmatically and then process the returned items in the code
(see e.g.
Programmatically working with Keyword Search Queries in SharePoint 2013).
Blog - http://sadomovalex.blogspot.com
Dynamic CAML queries via C# - http://camlex.codeplex.com

Similar Messages

  • Can Contributors access Visio documents in SharePoint library

    Hi,
    Can site contributors view / edit Visio documents in SharePoint library?
    Please anyone help me on this.

    How can I do this :Also try visio
    /safe and deactivate any addons.
    Can you please give me detail steps?

  • Upload multiple documents to SharePoint library in parallel using c#

    Hi Team,
    We are trying to upload thousands of documents to SharePoint library programatically.I am able to achieve this sequentially . Please help me in achieving this parallely and improve the performance.
    Thanks in Advance.

    You can try new .net framework async/await feature as described at
    http://blogs.msdn.com/b/cdndevs/archive/2013/12/18/c-async-and-await-why-do-we-need-them-part-1.aspx. However, you need to limit your concurrent requests, you don't want to span 100 files upload in parallel.
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • Not able to edit the emailed document to SharePoint library

    Did anyone try to edit the Word Documents that are populated from the outlook emails into the SharePoint library using Incoming Email setttings?
    This library doesn't have any required cols but still it is giving this error message all the time:
    The File cannot be saved because some properties are missing or invalid.
    Use the document Information panel to provide the correct property values. errors for required properties are marked with red asterisk and errors for invalid properties are marked with a red dashed border.
    When I go to the information panel, I just see a red asterisk beside the
    location- populated with the path of the file location.
    Does anyone faced this issue before?
    Advanced thanks for the help.

    Hi,
    It seems a default behavior in SharePoint 2010 for an email enabled list.
    You can try the workaround below:
    1. Go to the doc library where you have enabled incomingemail> go to Library Settings
    2. Go to the Content Types section (you have to enable manage Content types
    from Advanced Settings if not done already)
    3. Add a new content type fromthe list of existing content types > good to try with Basic Page. Make that as the Default (select it as #1).
    4. Once you are done with the changes, go to our Outlook client and send an
    emailto the same list with an attached Word or Excel file and try Saving it after
    Edit.
    Xue-mei Chang
    TechNet Community Support

  • Unable to upload document into SharePoint Library

    Hi Guys,
    I am unable to upload the document after updating the meda data field default values.
    Error is
    Error
    The URL 'SharedDocuments/A - Copy (2).docx' is invalid.  It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current
    Web.
    Troubleshoot issues with Microsoft SharePoint Foundation.
    Correlation ID: a658472e-d608-4aaa-8f8f-04fedc9a2a0b
    Date and Time: 4/24/2014 2:35:28 PM
    Go
    back to site
    thanks,
    Santhosh G.

    Hi,
    I had updated the default value of the managed metadata field using the below code.
    After that, the library worked well without any issue, you can use the below code to check whether it works.
    TaxonomySession taxonomySession = new TaxonomySession(site);
    TermStore termStore=taxonomySession.TermStores["Managed Metadata Service"];
    Group group=termStore.Groups["Site Collection - sp"];
    TermSet termSet=group.TermSets["Test1"];
    Term term=termSet.Terms["AA"];
    SPList list = web.Lists.TryGetList("1");
    TaxonomyField taxonomyField=list.Fields["MMS"] as TaxonomyField;
    Console.WriteLine("Old Default Value:{0}", taxonomyField.DefaultValue);
    taxonomyField.DefaultValue = "-1" + ";#" + term.Name + "|" + term.Id.ToString().ToLower();
    taxonomyField.Update();
    Console.WriteLine("New Default Value :{0}", taxonomyField.DefaultValue);
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Upload the document from other site to sharepoint library

    Hi All,
    I am having folder with document in want to upload the bulk of that document to SharePoint library.
    Please let me know how can i do.
    Thank you,
    Sowjanya.

    Hi.
    1. Open the location of the documents to bring to SharePoint in a windows explorer. The open the document library located in SharePoint. 
    2. Once the document library is viewed, on the upper left hand corner of the page, click on the Library tab. This will display the ribbon controls for the document library.
    3. Within the ribbon controls, locate the Open with Explorer then click it. This should open the document library in windows explorer.
    4. Select the files that you want to copy in the windows explorer then copy or dray those files to the explorer of the document library.
    5. That should be it unless you have set properties in your document library that needs to be filled up. Do not forget to publish/check in the files that you have uploaded.
    Hope this helps.
    Cheers.
    Robert
    Outsource Trainer

  • Getting error while opening document in SharePoint 2010

    Hi,
    I got the below error while opening a document in SharePoint library.
    "The document could not be opened for editing. A Microsoft SharePoint Foundation compatible application could not be found to edit the document."
    Please help me to resolve.
    Krishnasandeep

    Hi,
    According to your post, my understanding is that you got the error while opening a document in SharePoint library.
    The issue can occur when you have several different versions of Office installed on the same computer and you have
    several different versions of the OWSSUPP DLL available which are not registered correctly.
    To resolve this issue you should disable Microsoft SharePoint Foundation Support in any other version of Office installed on the machine and then repair Office.
    For more information: you can refer to:
    You get an error message when you open an Office file from SharePoint on a computer on which you installed more than one version of Office
    In addition, please ensure that you are using Internet Explorer (32 bit) not the Internet Explorer (64-bit).
    Please Verify the “Sharepoint OpenDocuments Class” addon is installed and enabled. If it is not reinstall Office.
    Please refer to:
    Solved: The document could not be opened for editing. A Microsoft SharePoint Foundation compatible application could not be found to edit the document.
    And, if the Office tools can’t install correctly will also cause the error.
    Here is a thread about this issue, you can check it. The replies include most of the possible reasons and gave the solutions.
    http://social.msdn.microsoft.com/Forums/en-US/06a4943a-5150-44c5-ae6b-3354c85396f5/the-document-could-not-be-opened-for-editing-a-microsoft-sharepoint-foundation-compatible
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Performance Assessment Document - Can Sharepoint 2013 be used?

    I have been tasked to produce an 'electronic' version of staff performance appraisals. At present this is a Word template which is exchanged between the employee and the line manager, and then ultimately ending up as a HR record.
    We have recently moved to office 365 and have SP 2013 online which I am still pretty new to, so Im just after a bit of guidance or advice if SP2013 is the right tool for the job?
    There are the usual security hurdles which would be faced, but rather than just hash together a 'survey' which could be used, I wanted to compete a slick version of the document?
    Any ideas or suggestions would be really helpful....?
    Many thanks, Gary

    Hi,
    You need provide more specific information about your requirement if the below information is not enough.
    If you want a document which is able to be edited among users, then SharePoint can do this. When you upload a document to SharePoint library, users with enough permission can view, edit the documents. You can also store, track, and restore documents
    in a library whenever they change once you enable version function.
    Organizations use SharePoint to create websites. You can use it as a secure place to store, organize, share, and access information from almost any device. The information could be in many formats such as office documents.
    There are kinds of lists and libraries template by default for different use. For survey purpose, you can create a survery list and add questions in the list.
    https://support.office.com/en-us/article/Create-a-survey-ea52a787-822e-4f7e-b5ed-77bb14df3aba
    You can learn more about SharePoint online here:
    https://products.office.com/en-us/SharePoint/sharepoint-online-collaboration-software
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Credential Pop up while opening word document in SharePoint 2013

    Hi
    When I open office documents from SharePoint library, it is asking for credentials. Even if I put my credentials, pop up window will not go away. I have IE 11 and SharePoint 2013.
    I have put this site in trusted site zone. User Authentication  - Automatic logon with current user name and password.
    I have clicked on Remember my credentials. I can see my saved credentials in credential manager.
    The thing is, I was able to open word document without asking for password before. But recently, I have changed IE settings to be default level for some other reason, and since then it is asking me for credentials.
    I looked online so many articles, but nothing has helped me yet.
    Any help will be appreciated.
    Thanks

    Hi Cameron
    Thanks for your response. Yesterday night, when I tried to open documents from sharepoint site from my home, it didn't ask me for credentials. I was using same laptop which I used in the office.
    Again, today in the office, It started asking for credentials when I open office document.
    The only difference is internet connection is different between my home and the office.
    Not sure what could be the issue.
    Thanks

  • Office Web Apps - Preview Sharepoint 2010 documents in Sharepoint 2013 Search Results...again

    Hi,
    I found a thread in this forum With an answere to a similiar question here:
    http://social.technet.microsoft.com/Forums/en-US/28bc1e27-4a65-4c61-9b3e-cb9dad17f779/office-web-apps-preview-sharepoint-2010-documents-in-sharepoint-2013-search-results?forum=sharepointsearch&prof=required
    ...With the answere:
    "OWA uses an access token to talk to SharePoint 2013.  It cannot use this when talking to 2010.  In order to work with 2010, you have to create a custom display template that converts the file url to an openurl link. "
    BUT...
    may anyone give more information how to do this?
    Links to articles? Links to description and samples?
    jik

    Hi,
    According to your description, my understanding is that you want to preview documents from SharePoint 2010 in search results in SharePoint 2013.
    Per my knowledge, the Office Web Apps is configured to work with SharePoint 2013, so it will not work with documents in SharePoint 2010.
    I recommend to configure Office Web Apps to work with SharePoint 2010
    and make sure that documents can be previewed in SharePoint 2010 using Office Web Apps to see if the documents can be previewed in SharePoint 2013 search result.
    http://technet.microsoft.com/en-us/library/ff431687(v=office.14).aspx
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • How to make SharePoint 2013 search only in document content?

    We are using SharePoint 2013 environment and are facing following issue while doing search in the document library.
     There is  one document library named “MYDOC” .and it has two columns name ‘DocTitle’ and ‘DocTag’.. Although we are able to perform search on basis of document metadata and content, however we only want to search through the content of documents
    in the library and not on the basis of document metadata (like ‘DocTitle’ or ‘DocTag’ columns). Is there a way to restrict search to document content only and not metadata?
    Excluding the column name will not help since, if the searched keyword is exists in metadata as well then that item of library will not come in result. Is there any way of writing query in such a way that only document content will get queried?
    -Aditya

    Addition to the above,
    Show or hide content from lists or libraries in search results
    As a site owner, you can decide whether items in lists and libraries on your site are included in search results. By default every list and library is set to include all items in search results.
     Note    To change this setting, you must have the Manage Lists permission level. The Designer and “Site Name” Owner groups contain this permission level. When you do not have Manage Lists permissions, the menus
    described in this procedure are not available.
    Navigate to the site that contains the list or library that you want to change.
    Locate and click the list or library you want to customize.
    Click Site Actions, and then click Site Settings.
    Under Site Administration, click Site Libraries and lists.
    Click an item from the list, for example, Customize “Shared Documents.”
    On the List Settings page, under General Settings, click
    Advanced settings.
    In the Search section, under Allow items from this document library to appear in search results, select
    Yes to include all of the items in the list or library in search result or
    No to exclude all items from search results.
    http://office.microsoft.com/en-in/sharepoint-server-help/enable-content-to-be-searchable-HA010379092.aspx

  • File created with Document Content Type will not be saved back to Sharepoint library

    Recently some of our users, after upgrading to Windows 8.1 with Office 2013, intermittantly are not able to save files created using  document content types template back to sharepoint library. Instead the location is set
    to their local storage. The same templates used by Windows 7 users with Office 2010 are working fine. Setting the SP sites as Trusted location in IE and Clearing IE Cache did not help. Adding the SP site in Word Trusted Location did
    not help. Any suggestions how this can be resolved is appreciated. Thanks.     

    Hi,
    According to your post, my understanding is that you could not save office file back to the SharePoint Document library.
    It may have to something with your Word Settings. When you click new and it opens in MS Word, word treats it as unsafe because perhaps it is not saved. To make it work:
    Go to Word (2013) -> File Menu -> Options -> Trust Center -> Trust Center Settings
    -> Protected View Tab -> Uncheck "Enable Protected View for files located in potentially unsafe locations" (2nd option)
    Here is the similar post, you can take a look at:
    http://blogs.interfacett.com/word-2010-not-saving-back-to-sharepoint-2010-by-default
    If the issue persist, you can also check the event log and ULS log to see if anything unexpected occurred.
    To check event log, click the Start button and type “Event Viewer” in the Search box.
    For SharePoint 2010, by default, ULS log is at:
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Full text index searching in large document sets

    I have been placed in charge of a digital PDF document library for a small biotech company. The library consists of about 1000 100-300 page .pdf documents which have been scanned and OCRed. In order to facilitate the full text searching of the documents a PDX catalog has been created. In theory, the PDX catalog would seem to be an excellent means of quickly accessing the data, but due the sheer volume of text that is contained in the documents this does not seem to be the case.
    Any given search may take hours to complete and many computers in the department have been known to lock up due to the load of running a search. Obviously, this has made using the PDX search more of a hassle than it is worth.
    I do not know exactly how the index searches work, but from what I gather they somehow search within each document in turn and return to you all the instances in all the documents that contain a certain term. If this is the case, than it would make sense that the searches would take a long time because the search would have to search each of the 1000 documents in sequence.
    The thing is: we really do not need to know the context and placement of every instance that a word appears in a document. All we need to know is IF it appears, and perhaps how many times. Is there a way to make an index that will simply give us this information without having to search the actual document?
    Heres an example of what I am trying to achieve:
    Note: I know almost nothing about full text indexes so please forgive me if any of this sounds insane
    Lets say we have a document called "word count.pdf" which contained the following text:
    "blah blah yadda yadda text Recombinant human insulin more text still texting and so on"
    And another called "word count 2.pdf" with the following text
    "Recombinant human insulin and la la la dee do"
    The indexes for these files could be condensed and stored like this:
    "Word count.pdf"
    Blah 2
    yadda 2
    recombinant 1
    human 1
    insulin 1
    text 2
    texting 1
    and 1
    so 1
    on 1
    "Word count 2.pdf"
    recombinant 1
    human 1
    insulin 1
    and 1
    la 3
    dee 1
    do 1
    In this example, if we were to run a search on "text" the index would return "word count.pdf, 3 instances (2 of text and 1 of texting" whereas if we were to search for "recombinant" it would return both "word count.pdf, 1 instance" and "word count 2.pdf, 1 instance".
    This way, I could quickly weed out all documents that do not have the word that I am looking for and get an idea about which documents should be searched more in depth without scanning every single instance of the term in every document.
    Is there any way to accomplish something similar to this using acrobat? (Or anything else, for that matter)
    My specifications: (similar to specs of all computers searching the pdx):
    Windows XP,
    intel celeron CPU 2.6GHz, 1G of ram
    Adobe Acrobat 8 Professional

    Look at dTSearch. We used the publisher version for a CD with large files sets (with hundreds of pages per file/thousands of PDF pages of multicolumn index data - text heavy), and it does a great job. The desktop version would provide the type of searching you are looking for. Indexing is also very fast. Our customer complained, like yourself, about the speed of searches in Acrobat 6 and higher - most of the delay is due to the population of the results window.
    http://www.dtsearch.com/

  • Create a new document in Sharepoint Document Library/OneDrive on iPad/Safari

    Hi,
    My users are having trouble creating a new document from OneDrive in Safari on their iPads. The screen goes grey like its going to show the popup to select the new file type, but the popup never comes up. If they clear their cache, it works for exactly 1
    time and then goes back to this behavior. I'm not exactly sure if it worked before and/or when it stopped working. The iPad I have tested was at the latest 8.2 version of IOS and my Sharepoint farm is an On-Prem install of 2013 with SP1 mark2. My WAC farm
    is also 2013 SP1.
    Any suggestions?
    Thanks,
    Matt

    Hi,
    I understand you are suffering the issue when create a document in Sharepoint Document Library/OneDrive on  iPad.
    According to the official article
    https://technet.microsoft.com/en-us/library/fp161353.aspx?f=255&MSPPError=-2147217396, the version of your iOS should be in the supported list. I guess the issue may start after you installed an update, and if there is any other version (low versions)
    of iPads in your company, please use a different version device to test the issue.
    Meanwhile, to determine whether the issue is related to your SharePoint environment, I suggest you just to register an Office 365 trail account, and test the issue with SharePoint Online. In case the same issue happens with SharePoint Online, the issue should
    be related to your client device, and my next suggestion is to contact support of your device manufacture.
    Once you need any help from SharePoint end, please don’t hesitate to come back, and we are always happy to support you.
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to get Document Set property values in a SharePoint library in to a CSV file using Powershell

    Hi,
    How to get Document Set property values in a SharePoint library into a CSV file using Powershell?
    Any help would be greatly appreciated.
    Thank you.
    AA.

    Hi,
    According to your description, my understanding is that you want to you want to get document set property value in a SharePoint library and then export into a CSV file using PowerShell.
    I suggest you can get the document sets properties like the PowerShell Command below:
    [system.reflection.assembly]::loadwithpartialname("microsoft.sharepoint")
    $siteurl="http://sp2013sps/sites/test"
    $listname="Documents"
    $mysite=new-object microsoft.sharepoint.spsite($siteurl)
    $myweb=$mysite.openweb()
    $list=$myweb.lists[$listname]
    foreach($item in $list.items)
    if($item.contenttype.name -eq "Document Set")
    if($item.folder.itemcount -eq 0)
    write-host $item.title
    Then you can use Export-Csv PowerShell Command to export to a CSV file.
    More information:
    Powershell for document sets
    How to export data to CSV in PowerShell?
    Using the Export-Csv Cmdlet
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

Maybe you are looking for

  • System freezes after update w/ 'testing repo'

    i'm using xfce with compiz and everything was fine til I updated my system with testing repo enabled.. here is my Xorg.conf # nvidia-settings: X configuration file generated by nvidia-settings # nvidia-settings: version 1.0 (buildmeister@builder3) We

  • No longer have access to data directories after installing 2008 Express

    I installed SQL Server 2008 Express on a virtual 2008 R2 Server, configured with separate drives for the various data directories (database, Temp DB and Backup) I am part of an Admin group and had access to the these drives prior to the install. Afte

  • BBC website slow today..

    Anyone else experiencing slow loading pages on the BBC website? The "homepage" loads quickly enough but loading any of the news pages, and particularly the sport pages, takes an eternity.

  • 802.1x - ACS 3.3 with AD Integration

    I'm running into an issue using AD integration and 802.1x. A previous thread on this indicated the 802.1x authentication occured prior to the domain login process. However, when I attempt to login to a machine using a domain account and that account

  • Switching Leopard from one mac to another

    I am currently running a PowerMac G5 with Leopard installed and a MacBook with Tiger. Due to our IT department cracking down, I will have to put my G5 into storage for a few months. I was wondering If it was legal to remove leopard from the G5 (and r