November 12, 2009

Search In Sharepoint

Search functioanlity

1. Get the Url for the one which you want to implement search.
Note: Url needs to be a windows Url, Forms will be automatically taken care.
Note: Forms Based Auth Url will not be set to crawled.
2. Go to central Admin age
3. Go to Shared Services Administration.
4. Create a New SSP with new admin application and new site location url.
5. Select the Index server, if none create one from central admin
6. Change Associations for web applications.
7. Search Settings
8. Content Sources and Crawl Schedules
9. New Content Source
10. Enter the Windows Url's in Start addresses for Sharepoint Sites.
11. Schedule Full Crawl and Incremental Crawl
12. Again Search Settings
13. File Types
14. Enter all extensions we use in our site.
Note: If this file type is not there here, default image will be seen in search results
15. Crawl Logs
Note: All crawled Content, Errors will be logged here.
16. Default Contenet Access Acount
17. Reset All Crawled Content
18. Site Level...site Settings.
19. Search settings
20. Use Custom Scopes..Give the Search center Url
Note: Create the Search Center from Sites and workspaces before this step.
21. View Scopes.
Note: Scopes will be visible in drop downs
22. New Scope and attach to Display Group.
23. Click on Scope and New Rule
24. Choose the Behaviour for that Scope.
25. Go to central Admin Again
26. Shared Services, Search Settings.
27. Start Full Crawl and Searh.
Note: For Folders there wont be any file type extension so,
it will give default IE image in search results.
To fix that we need to modify the Search Core Results Web Part.
28. Code Block
<!-- This template is called for each result -->
<xsl:template match="Result">
<xsl:variable name="id" select="id"/>
<xsl:variable name="url" select="url"/>
<span class="srch-Icon">
<a href="{$url}" id="{concat('CSR_IMG_',$id)}" title="{$url}">
<img align="absmiddle" src="{imageurl}" border="0" alt="{imageurl/@imageurldescription}" />
</a>
</span
>
Add Code Block
<xsl:variable name="isdoc" select="isdocument"/>
After Code Block
<xsl:variable name="id" select="id"/>
<xsl:variable name="url" select="url"/>
and replace Code Block
<img align="absmiddle" src="{imageurl}" border="0" alt="{imageurl/@imageurldescription}" />
by Code Block
<xsl:if test="$isdoc = 0">
<img align="absmiddle" src="/_layouts/images/folder.gif" border="0" alt="{imageurl/@imageurldescription}" />
</xsl:if>
<xsl:if test="$isdoc = 1">
<img align="absmiddle" src="{imageurl}" border="0" alt="{imageurl/@imageurldescription}" />
</xsl:if>
29. If any new images place in
\\cxiricdc02\c$\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\IMAGES
30.Note: Change the DOCICON.XML in \\cxiricdc02\c$\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\XML
Add <Mapping Key="pdf" Value="pdf_icon_002.gif"/> in the <ByExtension> Tag.
31. IIS Reset and You are Good to Go with search Functionality.

No comments:

SonarQube with Jenkins Setup using Docker Images

https://funnelgarden.com/sonarqube-jenkins-docker/  https://medium.com/@hakdogan/an-end-to-end-tutorial-to-continuous-integration-and-con...