Solved

Search using Microsoft Indexing Server does not return titles

Posted on 2009-07-10
14
361 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
Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

 

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

758 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

22 Experts available now in Live!

Get 1:1 Help Now