• Blog
  • Info Support
  • Career
  • Training
  • International Group
  • Info Support
  • Blog
  • Career
  • Training
  • International Group
  • Search
logo InfoSupport
  • Latest blogs
  • Popular blogs
  • Experts
      • Alles
      • Bloggers
      • Speakers
  • Meet us
  • About us
    • nl
    • en
    • .NET
    • Advanced Analytics
    • Agile
    • Akka
    • Alexa
    • Algorithms
    • Api's
    • Architectuur
    • Artificial Intelligence
    • ATDD
    • Augmented Reality
    • AWS
    • Azure
    • Big Data
    • Blockchain
    • Business Intelligence
    • Cloud
    • Code Combat
    • Cognitive Services
    • Communicatie
    • Containers
    • Continuous Delivery
    • CQRS
    • Cyber Security
    • Dapr
    • Data
    • Data & Analystics
    • Data Science
    • Data Warehousing
    • Databricks
    • DevOps
    • Digital Days
    • Docker
    • eHealth
    • Enterprise Architecture
    • Hacking
    • Infrastructure & Hosting
    • Innovatie
    • Integration
    • Internet of Things
    • Java
    • Machine Learning
    • Microservices
    • Microsoft
    • Microsoft Bot Framework
    • Microsoft Data Platform
    • Mobile Development
    • Mutation Testing
    • Open source
    • Pepper
    • Power BI
    • Privacy & Ethiek
    • Python
    • Quality Assistance & Test
    • Quality Assurance & Test
    • Requirements Management
    • Scala
    • Scratch
    • Security
    • SharePoint
    • Software Architecture
    • Software development
    • Software Factory
    • SQL Server
    • SSL
    • Start-up
    • Startup thinking
    • Stryker
    • Test Quality
    • Testing
    • TLS
    • TypeScript
    • Various
    • Web Development
    • Web-scale IT
    • Xamarin
    • Alles
    • Bloggers
    • Speakers
Home » Enabling search on listitems in Sharepoint Portal Search.
  • Enabling search on listitems in Sharepoint Portal Search.

    • By Oud-medewerkers
    • .NET 16 years ago
    • .NET 0 comments
    • .NET .NET
    Enabling search on listitems in Sharepoint Portal Search.

    Last week we wanted to perform a search on the AssignedTo column in the tasks list on WSS sites and area’s. Our goal was to create a custom webpart which would display ALL tasks anywhere in the portal which were assigned to the current user.


     


    To my horror I could not get the listitems I used the AssignedTo column in to appear in the advanced search results. Sure…I could tell it to show up in the dropdownboxes on Sharepoints Advanced Search Page but any query performed on it turned up empty.


     


    When I investigated this problem further I noticed two disabled checkboxes in the ‘Exclude and Include content’ screens for the Non_Portal_Content and Portal_Content indexes.


     


    These checkboxes were ‘Allow alerts from individual Sharepoint list items’ and ‘Crawl individual Sharepoint list items’. Wait….did it just say ‘CRAWL individual list items’?


    That must be the reason I cannot get my task from the search page!


     


    Now we need to figure out how we can get this option to be enabled so I can select it.


     


    I found out that Microsoft disabled this by default because if you are having a portal with thousands of list and you are going to index every listitem…your search indexes will become huge. But in our scenario, we don’t care about that and want to index those items!


     


    This is how:


     


    On the ‘Exclude and include content for Non_Portal_content’ page you will see something like this by default:


     

      


    Where ‘ws2k3net2k3’ is your registered portal url.


     


    Sharepoint automatically created these include and exclude rules for you and the only way to enable the checkboxes described above is to recreate these rules.


     


    Because we want to include more information in our indexes we do not need to recreate the Excluded rules.


    So do the following:


     



    1. delete the http://w2k3net2k3/* rule.
    2. Create a new rule
    3. Type the same path the rule you just deleted had (in this case http://w2k3net2k3/*)
    4. Select:



      • Include complex URLs
      • Allow alerts for individual Sharepoint list items
      • Crawl individual Sharepoint list items

     


    Repeat steps 1 to 4 for the Portal_Content index.


     


    Rebuild your content indexes and you should now be able to look for individual list items!



    Addition 30-12-2005:


    An example query on search.asmx could be:


    <?xml version=”1.0″ encoding=”utf-8″ ?>


    <QueryPacket Revision=”1000″>


    <Query domain=”QDomain”>


    <SupportedFormats>


    <Format>urn:Microsoft.Search.Response.Document.Document</Format>


    </SupportedFormats>


    <Context>


    <QueryText language=”en-US” type=”MSSQLFT”>


    <![CDATA[


    SELECT “DAV:displayname”,


    “DAV:href”,


    “urn:schemas-microsoft-com:office:office#Author”


    FROM (TABLE non_portal_content..scope()


    UNION ALL TABLE portal_content..scope() )


    WHERE


    CONTAINS (“urn:schemas-microsoft-com:office:office#ows_AssignedTo”, ‘”admin*”‘)&nbsp; ]]>


    </QueryText>


    </Context>


    </Query>


    </QueryPacket>



    (This searches for all AssignedTo columns which contain the string&nbsp;’admin’)


    Share this

Oud-medewerkers

View profile

Related IT training

Go to training website

Related Consultancy solutions

Go to infosupport.com

Related blogs

  • Innovative patterns in software quality management

    Innovative patterns in software quality management Tom van den Berg - 2 months ago

  • Developing a Service Fabric service using another host

    Developing a Service Fabric service using another host Tim van de Lockand - 6 months ago

  • Adding a package to your private WinGet.RestSource feed…

    Adding a package to your private WinGet.RestSource feed… Léon Bouquiet - 12 months ago

Related downloads

  • Beslisboom voor een rechtmatig ‘kopietje productie’

  • Klantreferentie: Remmicom zet wetgeving om in intellige…

  • Klantreferentie RDW: Samenwerken voor veilig en vertrou…

  • Klantreferentie BeFrank: Strategische IT voor een innov…

  • Wie durft te experimenteren met data in de zorg?

Related videos

  • mijnverzekeringenopeenrij.nl

    mijnverzekeringenopeenrij.nl

  • Winnaar | Innovation Projects 2017

    Winnaar | Innovation Projects 2017

  • Explore | Info Support & HAN & Poliskluis

    Explore | Info Support & HAN & Poliskluis

  • LifeApps bij HagaZiekenhuis

    LifeApps bij HagaZiekenhuis

  • Info Support | Bedrijfsfilm

    Info Support | Bedrijfsfilm

Nieuwsbrief

* verplichte velden

Contact

  • Head office NL
  • Kruisboog 42
  • 3905 TG Veenendaal
  • T +31 318 552020
  • Call
  • Mail
  • Directions
  • Head office BE
  • Generaal De Wittelaan 17
  • bus 30 2800 Mechelen
  • T +32 15 286370
  • Call
  • Mail
  • Directions

Follow us

  • Twitter
  • Facebook
  • Linkedin
  • Youtube

Newsletter

Sign in

Extra

  • Media Library
  • Disclaimer
  • Algemene voorwaarden
  • ISHBS Webmail
  • Extranet
Beheer cookie toestemming
Deze website maakt gebruik van Functionele en Analytische cookies voor website optimalisatie en statistieken.
Functioneel
Altijd actief
De technische opslag of toegang is strikt noodzakelijk voor het legitieme doel het gebruik mogelijk te maken van een specifieke dienst waarom de abonnee of gebruiker uitdrukkelijk heeft gevraagd, of met als enig doel de uitvoering van de transmissie van een communicatie over een elektronisch communicatienetwerk.
Voorkeuren
De technische opslag of toegang is noodzakelijk voor het legitieme doel voorkeuren op te slaan die niet door de abonnee of gebruiker zijn aangevraagd.
Statistieken
De technische opslag of toegang die uitsluitend voor statistische doeleinden wordt gebruikt. De technische opslag of toegang die uitsluitend wordt gebruikt voor anonieme statistische doeleinden. Zonder dagvaarding, vrijwillige naleving door uw Internet Service Provider, of aanvullende gegevens van een derde partij, kan informatie die alleen voor dit doel wordt opgeslagen of opgehaald gewoonlijk niet worden gebruikt om je te identificeren.
Marketing
De technische opslag of toegang is nodig om gebruikersprofielen op te stellen voor het verzenden van reclame, of om de gebruiker op een website of over verschillende websites te volgen voor soortgelijke marketingdoeleinden.
Beheer opties Beheer diensten Beheer leveranciers Lees meer over deze doeleinden
Voorkeuren
{title} {title} {title}