Hi Christopher
I presumed that you must be able to specify more than 10 properties, that's what's been puzzling us. We've tried putting the values into an array to cut down the query text, the code below fails, but if you remove one property from any of the arrays it works!!? We've also tried it on a year field which has a smaller text size.
SELECT Rank, Title, Size, Path, Description, HitHighlightedSummary, HitHighlightedProperties, IsDocument, PictureThumbnailURL, DocType, Year, Source
FROM Scope ()
WHERE ("scope" ='Reports (US)' or "scope" =’Reports Worldwide' or "scope" =’Gauge' or "scope" =’Youth' )
AND (DocType = ANY ARRAY ['Pulse Documents','Annual','Teleconferences','Data Tables','Methodology','Questionnaires','Works','Report 2','Review','Other Reports & Presentations'])
AND (Category = ANY ARRAY ['Food and Beverage'])
AND FREETEXT (defaultproperties, 'any') ORDER BY Rank DESC
Incedentally when we run the sql below (taken from the logs) created by the advanced search webpart it runs without any errors
SELECT WorkId, Rank, Title, Author, Size, Path, Description, Write, SiteName, CollapsingStatus, HitHighlightedSummary, HitHighlightedProperties, ContentClass, IsDocument, PictureThumbnailURL from scope() where freetext(defaultproperties,'+roper') And (DetectedLanguage = 12 Or DetectedLanguage = 7 Or DetectedLanguage = 17 Or DetectedLanguage = 10 Or DetectedLanguage = 69 Or DetectedLanguage = 27 Or DetectedLanguage = 30 Or DetectedLanguage = 22 Or DetectedLanguage = 36 Or DetectedLanguage = 38 Or DetectedLanguage = 24 Or DetectedLanguage = 25 Or DetectedLanguage = 29 Or DetectedLanguage = 42 Or DetectedLanguage = 14 Or DetectedLanguage = 10 Or DetectedLanguage = 15 Or DetectedLanguage = 33 Or DetectedLanguage = 8 Or DetectedLanguage = 1) And (Author like '%asdasda%' Or Author like '%adsadasd%' Or Author like '%adsadasd%')
Could it be because the properties we are using are managed properties (text) fields?