6
Vote

Managed Property Queries Cause Search Error

description

Managed propeties are currently not working (i.e. Color:"Red").

comments

cdog wrote Aug 5, 2008 at 10:51 PM

I am working on this feature for my next release.

gpollock wrote Jan 9, 2009 at 10:56 AM

Hey there, just wondering if you had any update on when you think you might have a new release out! Cheers Gavin

cdog wrote Feb 5, 2009 at 8:27 PM

I plan to start working on an update pretty soon. Get your feature requests in if you have any.

wrote Mar 19, 2009 at 11:19 AM

wrote Mar 19, 2009 at 11:19 AM

wrote Mar 19, 2009 at 11:19 AM

wrote May 5, 2009 at 6:09 PM

Donder wrote Sep 29, 2009 at 8:28 AM

I've added this to the webpart for one of my clients and changed the code at line 219 to the following:
            Regex fields = new Regex("(?<Field>[\\S]*):\"(?<Value>.*?)\"");
            keywordQuery = " " + keywordQuery;
            foreach (Match field in fields.Matches(keywordQuery))
            {
                fullTextQuery.AppendFormat("{0} = '{1}' AND ", field.Groups["Field"].Value, field.Groups["Value"].Value);
                keywordQuery = keywordQuery.Replace(field.Value, "");
            }

            if (keywordQuery.Trim().Length > 0)
            {
                // append an asterisk if alwaysUseWildcard is on
                if ((AlwaysUseWildcard) && (!keywordQuery.EndsWith("*")))
                    keywordQuery += "*";

                // append the wildcard query
                fullTextQuery.AppendFormat("CONTAINS ('\"{0}\"')", keywordQuery.Trim());
            }

wrote Feb 14, 2013 at 1:21 AM