?
Solved

Search using Microsoft Indexing Server does not return titles

Posted on 2009-07-10
14
Medium Priority
?
370 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

 

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 143

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 1000 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
 

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 143

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 143

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

765 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