我的管理属性命名为e/m/BioOffice/Text
, e/m/BioPosition/Text
。当我尝试执行以下代码时:
string queryTxt = "SELECT URL, e/m/BioOffice/Text,e/m/BioPosition/Text FROM SCOPE() where \"scope\"='ektron25056203187' And FREETEXT(*,'" + TextBox1.Text.Trim() + "')";
var query = new FullTextSqlQuery(searchApplicationProxy)
{
QueryText = queryTxt,
ResultTypes = ResultType.RelevantResults,
ResultsProvider = SearchProvider.Default,
TrimDuplicates = false,
EnableStemming = true
};
ResultTableCollection resultsTableCollection = query.Execute();
ResultTable searchResultsTable = resultsTableCollection[ResultType.RelevantResults];
DataTable resultsDataTable = new DataTable();
resultsDataTable.TableName = "Results";
resultsDataTable.Load(searchResultsTable, LoadOption.OverwriteChanges);
Label1.Text = "Total results Count : " + resultsDataTable.Rows.Count;
它给了我一个例外:Your query is malformed. Please rephrase your query
。请帮助我如何访问这些属性。