Unusual search results using search web service using MATCHE
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Unusual search results using search web service using MATCHE

 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development
Author Message
Guest






Posted: Wed Oct 26, 2005 12:51 am    Post subject: Unusual search results using search web service using MATCHE Reply with quote

Hi,
Using SPS 2003 and the search service. The query uses a MATCHES
predicate to search against a custom html meta tag (string data type),
and when executed no results are found. However adding to the where
clause something like ' and "DAV:getcontentlength" > 0' causes the
search to find the expected results. The unusual thing is that all
content in the portal should have a size greater than zero, so this
part of the where clause doesn't really add any value, in fact it seems
to make the query take a lot longer. Futhermore, if the CONTAINS
predicate is used instead of the MATCHES predicate (w/o the
"DAV:getcontentlength") some results are received. Is there something
wrong with the MATCHES predicate?
Examples queries:
(0 results) select "DAV:href",
"urn:schemas.microsoft.com:fulltextqueryinfo:DESCRIPTION" from
MYINDEX..Scope() where
MATCHES("urn:schemas.microsoft.com:htmlinfo:metainfo:CUSTOMCOLUMN",'*anderson*')

(some results) select "DAV:href",
"urn:schemas.microsoft.com:fulltextqueryinfo:DESCRIPTION" from
MYINDEX..Scope() where
MATCHES("urn:schemas.microsoft.com:htmlinfo:metainfo:CUSTOMCOLUMN",'*anderson*')
and "DAV:getcontentlength" > 0
TIA
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB