It needs to be a managed property. Add the property and map it through
SSP->Search Settings->Metadata.
Then just add the property to each search result type you want it available to.
e.g.
<PropertyDefs>
<PropertyDef Name="MyMappedField" DataType="text"
DisplayName="MyNicefieldName"/>
...
</PropertyDefs>
<ResultTypes>
<ResultType DisplayName="All Results" Name="default">
<Query/>
<PropertyRef Name="MyMappedField" />
</ResultType>
<ResultType...
</ResultTypes>
Regards,
Paul
Online Developer, ICT
CEO Sydney
From: [email protected] [mailto:[email protected]] On Behalf Of
Marko Salonen
Sent: Thursday, 3 December 2009 10:55 AM
To: ozMOSS
Subject: Search
Hi All
This is my first look into the search webpart and have a query.
I have an existing Advanced Search Box webpart that I would like to add a new
column to.
So I go to edit page - modify shared part - Properties - and edit the
properties.
First is list a whole bunch of languages
<Languages>
<Language LangRef="12"/>
...
...
<Language LangRef="10"/>
</Languages>
It then has the <PropertyDefs> and after that the <ResultTypes>
I attempted to add a new field by copying one of the PropertyDefs and chaging
it to what I wanted,
Same with the ResultTypes.
When I try and search for an item with the new field I get this: Property
doesn't exist or is used in a manner inconsistent with schema settings.
I am probably not doing it the correct way (please nobody say: "That's what she
said" :) ) but I was hoping to get some pointers.
Regards,
Marko
________________________________
This email and any files transmitted with it are intended solely for the use of
the individual or entity to whom this email is addressed. This email's
contents are confidential and may contain copyright and/or legally privileged
information. If you are not the intended recipient, you must not read, print,
store, copy, forward or use this email for any reason. If this e-mail was sent
to you in error, please notify the sender by return email, and delete this
email without making a copy. Any confidentiality or privilege is not waived or
lost because this email has been sent to you by mistake. Thank you.
P Please consider the environment before printing this email
_______________________________________________
ozmoss mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss