|
Home > Archive > IIS Index Server > May 2004 > Unable to get values from custom properties
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Unable to get values from custom properties
|
|
|
| Hi all,
i'm trying to add new properties (columns) to a catalog, via ASP (JScript).
In my sample, everythings works fine with default properties (Vpath, Size, Characterization...).
In the indexed HTML files, I've added a metatag property named iso_gid :
<META NAME="iso_gid" CONTENT="myContent">
In the template file : i've added the definition of the new column, i've added this new column name to my Columns :
var objQuery = Server.CreateObject("ixsso.Query");
objQuery.DefineColumn("iso_gid (DBTYPE_WSTR|DBTYPE_BYREF) = d1b5d3f0-c0b3-11cf-9a92-00a0c908dbf1 iso_gid");
objQuery.Columns = "vpath,size,characterization,iso_gid";
During the course of the results, i get correctly the values of default columns, but an empty value for my custom column :
<p>vPath = <%= objRS("Vpath")%></p><p>iso_gid = <%= objRS("iso_gid")%></p>
In conclusion, i have a few questions :
1. What do i do wrong ? (definition of the custom column ? call of the value ? ...)
2. Where does the GUID d1b5d3f0-... should come from ? (i've found this value in MSDN sample)
Remark : in the Indexing service's MMC console, the iso_gid value has been automatically added in the "Properties" windows of my catalog. So i think that DefineColumn has been executed by the indexing engine.
But : i've noticed that this new property has the GUID as "PropertySet", has iso_gid as "Property", but don't have any "Name". Shouldn't it be iso_gid as Name ?
Thanks for your answers...
remi
| |
| George Cheng [MSFT] 2004-05-05, 12:35 pm |
| Doesn't sound like you cached the new property and reindexed.
185985 Using Index Server to Query and Display META TAG Information
http://support.microsoft.com/?id=185985
Thank You
George Cheng
Microsoft Application Center & Index Server Support
Note: This article has no warranties implicit or explicit.
All the content is given on the "as is" basis and the user
takes full responsibility for its use and assumption.
Microsoft Corporation Copyright 2004
All Rights Reserved
--------------------
| Thread-Topic: Unable to get values from custom properties
| thread-index: AcQyr7FS5SpRErQ1QcW6qvnphvzRpg==
| X-WN-Post: microsoft.public.inetserver.indexserver
| From: "=?Utf-8?B?cmVtaQ==?=" <anonymous@discussions.microsoft.com>
| Subject: Unable to get values from custom properties
| Date: Wed, 5 May 2004 07:46:04 -0700
| Lines: 28
| Message-ID: <ED0A96A1-A593-47D5-98E7-09AE663E145D@microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.inetserver.indexserver
| Path: cpmsftngxa10.phx.gbl
| Xref: cpmsftngxa10.phx.gbl microsoft.public.inetserver.indexserver:28924
| NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.180
| X-Tomcat-NG: microsoft.public.inetserver.indexserver
|
| Hi all,
i'm trying to add new properties (columns) to a catalog, via ASP (JScript).
In my sample, everythings works fine with default properties (Vpath, Size,
Characterization...).
In the indexed HTML files, I've added a metatag property named iso_gid :
<META NAME="iso_gid" CONTENT="myContent">
In the template file : i've added the definition of the new column, i've
added this new column name to my Columns :
var objQuery = Server.CreateObject("ixsso.Query");
objQuery.DefineColumn("iso_gid (DBTYPE_WSTR|DBTYPE_BYREF) =
d1b5d3f0-c0b3-11cf-9a92-00a0c908dbf1 iso_gid");
objQuery.Columns = "vpath,size,characterization,iso_gid";
During the course of the results, i get correctly the values of default
columns, but an empty value for my custom column :
<p>vPath = <%= objRS("Vpath")%></p><p>iso_gid = <%= objRS("iso_gid")%></p>
In conclusion, i have a few questions :
1. What do i do wrong ? (definition of the custom column ? call of the
value ? ...)
2. Where does the GUID d1b5d3f0-... should come from ? (i've found this
value in MSDN sample)
Remark : in the Indexing service's MMC console, the iso_gid value has been
automatically added in the "Properties" windows of my catalog. So i think
that DefineColumn has been executed by the indexing engine.
But : i've noticed that this new property has the GUID as "PropertySet",
has iso_gid as "Property", but don't have any "Name". Shouldn't it be
iso_gid as Name ?
Thanks for your answers...
remi
|
| |
|
|
I've cached the new property (with default values), restarted the Indexing service and reindexed completely the folder.
Still the same problem.
thanks for your answer 
remi
| |
|
| Huh !
my problem is resolved now :
a few hours after the end of reindexing task, my script gets the good value 
May be something was temporarily blocked on the server.
Thanks a lot for your help GC 
remi
|
|
|
|
|