Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 4th, 2003, 11:11 AM
Authorized User
 
Join Date: Jun 2003
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default MS Indexing Server and ADO problem...

Hello,

I'm working on a multi-languages site on Windows 2003 Server that is indexed with the MS Indexing Service with his own catalog.

On every page we have the following meta tag to differentiate the language:

<meta name="language" content="xx">

(xx stands for the language: us, fr, de ...)

Here is the SQL command that I pass to the provider :
Code:
strSQL = "SET PROPERTYNAME 'd1b5d3f0-c0b3-11cf-9a92-00a0c908dbf1' PROPID 'language' AS language TYPE DBTYPE_STR;"
strSQL = strSQL & "SELECT DocTitle, vpath, filename, size, write, characterization, language "
strSQL = strSQL & "FROM SCOPE() WHERE CONTAINS ('" & strFilter & "')"
The problem is that my property 'language' is always empty.
My goal is to use the language property in the WHERE clause..!

Am I doing all wrong?

Thanks.
davide


PS: Here is where to find this non working method...
http://msdn.microsoft.com/library/de...webov_9s13.asp
 
Old July 11th, 2003, 04:58 AM
Authorized User
 
Join Date: Jun 2003
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello,

well I found the answer (if somebody care)! It was a little ago but I've forgot this post...

The property was indexed but not CACHED in the catalog..!
I'm a little ashamed, it wasn't really a so called asp_pro_code problem...

cheers,
davide
 
Old July 14th, 2004, 07:30 AM
Registered User
 
Join Date: Jul 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dikkjo,

Did you manage to actually test on your custom meta?

I have enabled a custom meta field called ValidFrom that represents the date in Integer format (e.g. today = 20040714) and had hoped to include the where clause in my SQL select...

SET PROPERTYNAME 'd1b5d3f0-c0b3-11cf-9a92-00a0c908dbf1' PROPID 'ValidFrom' AS ValidFrom TYPE DBTYPE_UI8;
SET PROPERTYNAME 'd1b5d3f0-c0b3-11cf-9a92-00a0c908dbf1' PROPID 'ValidTo' AS ValidTo TYPE DBTYPE_UI8;
SET PROPERTYNAME 'd1b5d3f0-c0b3-11cf-9a92-00a0c908dbf1' PROPID 'title' AS title TYPE DBTYPE_WSTR;
SELECT title, ValidFrom, ValidTo, Rank, DocTitle, VPath, Filename, Characterization, Write
FROM SCOPE('DEEP TRAVERSAL OF ""{0}""')
WHERE NOT CONTAINS(VPath, '""_vti_"" OR "".config""')
AND (ValidFrom = 20040701)


I actually have a piece of content that displays the ValidFrom date as 20040701 so I know it exists and is being cached - BUT with the Bold line above in place I get no results. I've tried > and < to no avail.

I've also recompiled (unchanged) the HTMLProp DLL from Microsoft!

Any advice would be very much appreciated from anyone!!

Regards
Mark
 
Old July 14th, 2004, 07:41 AM
Registered User
 
Join Date: Jul 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

In addition, I've just noted that simply adding...

AND (ValidFrom IS NOT NULL)

only the records with the ValidFrom are being returned.

If I wrap the 20040701 in quotes I receive and error indicating that it can't be converted to a DBTYPE_UI8 as I would expect

I am absolutely at a loss as to why the value is cached, retrieved (and can be output) as an unsigned integer, but when tested against it fails!

 
Old September 7th, 2004, 11:05 PM
Registered User
 
Join Date: Sep 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

May I know how can I rescan the catalog with Indexing Service after I've cached the properties?

Regards,
Joanne






Similar Threads
Thread Thread Starter Forum Replies Last Post
MS ACCESS 2003 FRONTEND AND MS SQL SERVER 2005 DB mohankumar0709 SQL Server 2005 3 March 23rd, 2007 12:48 AM
Setting up Full-Text Indexing in Server Explorer Aaron Edwards Visual Studio 2005 0 July 1st, 2006 01:41 AM
problem using ADO to open form in MS Access apike VBScript 3 May 2nd, 2006 06:25 AM
problem with ms sql-server abd logging hertendreef ASP.NET 2.0 Basics 12 May 1st, 2006 03:15 PM
ADO.NET connectivity problem with SQL Server !!! virajp ADO.NET 2 December 5th, 2005 11:51 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.