Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 02/10/2006 9:28 AM by  chai cheeching
Error with 'Doesn't contain' search
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages
ala makota
New Member
New Member
Posts:9


--
02/03/2006 7:43 PM
    Finally my content search in documents works fine but when using 'Doesn't contain' search I get the error as below. When 'Contains' everything works fine and it correctly returns the documents that contain the word. It is not critical for me but just letting you know.
    -----------------------------------

    An error occurred in the following search:
    SELECT {objectQualifier}DMX_Entries.*, ParentEntries.Description AS CollectionName, {objectQualifier}DMX_Extensions.Icon16 FROM {objectQualifier}DMX_Entries, {objectQualifier}DMX_Entries AS ParentEntries, {objectQualifier}DMX_Extensions, OPENQUERY(DNNdocs, 'SELECT Filename, Rank FROM SCOPE() WHERE NOT CONTAINS(Contents, ''"alien"'')') AS Docs WHERE (({objectQualifier}DMX_Entries.CollectionId *= ParentEntries.EntryId) AND ({objectQualifier}DMX_Entries.PortalId = 0) AND ({objectQualifier}DMX_Entries.EntryType = {objectQualifier}DMX_Extensions.ExtensionKey) AND ({objectQualifier}DMX_Extensions.PortalId = 0) AND (';'+{objectQualifier}DMX_Entries.ViewRoles LIKE '%;-1;%') AND ({objectQualifier}DMX_Entries.IsApproved=1 OR {objectQualifier}DMX_Entries.UserId=-1) AND ({objectQualifier}DMX_Entries.EntryId = {objectQualifier}DMX_Entries.LastVersionId) AND ({objectQualifier}DMX_Entries.Deleted = 0) AND (CHARINDEX(Docs.Filename, {objectQualifier}DMX_Entries.Entry,1) > 0))
    Error: Could not execute query against OLE DB provider 'MSIDXS'.


    Peter Donker
    Veteran Member
    Veteran Member
    Posts:4536


    --
    02/06/2006 1:57 PM
    Thanks for the report Ala. If you want to reseach it further you can copy-paste this into SQL Query analyzer and search-replace the {objectQualifier} to whatever you've set it to. Then see where the error occurs. It appears the linked server did not react to the request of the SQL server. From your report I gather it is not a problem if you run the query as 'contains' (instead of 'not contains'). Is this true?

    Peter
    chai cheeching
    New Member
    New Member
    Posts:1


    --
    02/10/2006 9:28 AM
    Hi,

    I am also facing the problem here. Is there any fix/solution to it?

    Chee Ching
    You are not authorized to post a reply.