web services - Is it possible to search SharePoint metadata? -
when use search.asmx web service won't allow me search metadata. there way can this?
below have come far query, errors out invalidpropertyexception
every time run it.
<?xml version="1.0" encoding="utf-8" ?> <querypacket xmlns="urn:microsoft.search.query" revision="1000"> <query domain="qdomain"> <supportedformats><format>urn:microsoft.search.response.document.document</format></supportedformats> <context> <querytext language="en-us" type="mssqlft"> <![cdata[ select title, rank, size, description, write, path portal..scope() "published" = 'yes' order "rank" desc ]]> </querytext> </context> <range><startat>1</startat><count>20</count></range> <enablestemming>false</enablestemming> <trimduplicates>true</trimduplicates> <ignoreallnoisequery>true</ignoreallnoisequery> <implicitandbehavior>true</implicitandbehavior> <includerelevanceresults>true</includerelevanceresults> <includespecialtermresults>true</includespecialtermresults> <includehighconfidenceresults>true</includehighconfidenceresults> </query></querypacket>
you can't search arbitrary column of metadata, need make sure gets crawled first , made available under sensible name (managed property). see this blog post example.
also, if published boolean, think might want test "published" = 1, in stead of yes.
Comments
Post a Comment