我有ASP.NET 4.6.1 WebForms Legacy ,它在Windows Server 2008 R2中使用索引服务器。
我收到 带有消息的OleDbException 错误:
The query contained only ignored words.
我的代码:
var datos = new List<Documento>();
var sql = "Select DocAuthor, vpath, doctitle, FileName, Path, Write, Size, Rank, Create, Characterization, DocCategory from " + Settings.Default.NombreCatalogoIndexServer + "..Scope() where " + FunctionContains(texto) + " order by rank desc";
using (var da = new OleDbDataAdapter(sql, "Provider=MSIDXS;"))
{
using (var testDataSet = new DataSet())
{
da.Fill(testDataSet, "SearchResults");
using (var catalogo = testDataSet.Tables[0])
完整错误:
System.Data.OleDb.OleDbException (0x80041605):
该查询仅包含被忽略的单词。
在 System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr) 在 System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) 在 System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) 在 System.Data。 OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior 行为,字符串方法)在 System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior 行为)在 System.Data.OleDb.OleDbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior 行为)在 System.Data .Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord,Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable)
键:
- 我怎样才能消除所有噪音?
- 如何为西班牙文化配置索引服务器?
有什么建议么 ?