Solved

Search using Microsoft Indexing Server does not return titles

Posted on 2009-07-10
14
362 Views
Last Modified: 2012-05-07
Hi all,
We are using Microsoft Indexing Server for our website search. The query we are using brings back the results we want with the exception that most of them are missing the title(doctitle). I noticed that the few search results that do show the title are pdfs only, but not all pdfs searched include the title.  What could we be missing?
Also, is there a easier way to exclude file types instead of having to filter out the results through the query using "filename not like '%.cs' and filename not like '%.config'"??

Thanks in advance.
System.Data.OleDb.OleDbConnection odbSearch = new System.Data.OleDb.OleDbConnection("Provider=\"MSIDXS\";Data Source=\"TEST\";");

        System.Data.OleDb.OleDbCommand cmdSearch = new System.Data.OleDb.OleDbCommand();

        cmdSearch.Connection = odbSearch;
 

        string searchText = txtSearch.Text.Replace("'", "''");

        cmdSearch.CommandText = "select doctitle, filename, vpath, rank, characterization from scope() where FREETEXT(Contents, '" + searchText + "') and filename not like '%.master' and filename not like '%.cs' and filename not like '%.config' order by rank desc ";
 

        odbSearch.Open();
 

        try

        {

            OleDbDataReader rdrSearch = cmdSearch.ExecuteReader();

            while (rdrSearch.Read())

            {

                getpagelink(rdrSearch["DOCTITLE"].ToString(), rdrSearch["VPATH"].ToString(), rdrSearch["CHARACTERIZATION"].ToString());

                //getpagelink(rdrSearch[0].ToString(), rdrSearch[2].ToString(), rdrSearch[4].ToString());

            }
 

        }

Open in new window

0
Comment
Question by:UKSystemSupport
  • 6
  • 3
14 Comments
 
LVL 12

Expert Comment

by:topdog770
ID: 24864985
Do the documents missing titles, really have titles?
 
0
 

Author Comment

by:UKSystemSupport
ID: 24871136
I am able to update each documents' (such as pdfs, word docs, excel, etc) title property so that they display properly. However, webpages (ASPX, HTML, etc) title  does not show up. Each page has its title property/tag setup in the code, but the search does not pick it up.
0
 

Author Comment

by:UKSystemSupport
ID: 24934331
Can someone please help me with this?? We are planning on launching our site ASAP and this is the last piece we have left to get working....
Any suggestions will be appreciated

Thanks
0
 

Author Comment

by:UKSystemSupport
ID: 25036121
The question was posted almost a month ago and we have recieved very little help (only 1 comment ! ). We need an answer to this, it is important so that our site works properly. There has to be some expert(s) that could give us a lead or an idea on why all our .ASPX webpages won't display their title. If this question is deleted I will be forced to open a new question for my unresolved issue.
0
 
LVL 142

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 250 total points
ID: 25038154
found this: http://articles.techrepublic.com.com/5100-10878_11-1049760.html
DocTitle:
The document titlefor HTML documents, it is the text contained in the <TITLE> tag

so, do your .aspx web pages contain that tag?
if yes, did they so from the first index search on? I am not sure the indexing service does an update ...
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

Author Comment

by:UKSystemSupport
ID: 25046546
Our .aspx pages do not have a <title> tag since they all reference a master page. What they do have is the title property defined within the <page> tag, but the search does not pick it up.
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 25046727
well, according to the above, that is the reason, then...
0
 

Author Comment

by:UKSystemSupport
ID: 25062950
Is there any workaround?? Or another way I could query the <%@ Page Title="page title"%> property?? Or maybe even the files' title property?
If so, that would work for us instead of getting blank search titles for the doctitle...
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 25062996
>Is there any workaround??
not that I know (of course, short of writing your own indexing service ...)
0
 

Accepted Solution

by:
UKSystemSupport earned 0 total points
ID: 25068180
I solved my dilemma by using the filename as the title in those cases where doctitle wasnt being generated. Along with some formatting we managed to make this our 'workaround' for now.

Thanks angelllll for your help.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now