Search returns no results when "Path" is specified
-
08 Desember 2011 22:10
Hello,
When querying SharePoint using search.asmx no results are returned from some sites when 'Path' is specified in the query.
<?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="STRING" >test Path:"http://vs-dev-sp2010/Documents" </QueryText>
</Context>
<SortByProperties><SortByProperty name="Rank" direction="Descending" order="1"/></SortByProperties>
<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>Any ideas why using the "Path" criteria might return 0 results on some sites and not others? Could this be a crawler issue?
thanks,
Brad.
Semua Balasan
-
12 Desember 2011 16:23
Does the Site keyword work? Generally, when I see these types of queries not working there is an issue with your alternate access mappings. Be sure those are set and crawl using the same URL that is specified for the default AAM.
Corey Roth - SharePoint Server MVP blog: www.dotnetmafia.com twitter: @coreyroth- Ditandai sebagai Jawaban oleh Wayne Fan 16 Desember 2011 8:32
-
22 Februari 2012 17:09
Same problem for me. I have only one URL and therefore not AAM shoult be requred. In my case I have got a web application using a port. Would this be the reason?Any suggestions?
Regards
Benjamin