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

Bring2mind Forums

Search results not getting documents which are created using DMX API
Last Post 08/24/2011 1:50 PM by Peter Donker. 1 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Srinivas
New Member
New Member
Posts:6


--
08/18/2011 4:35 PM
Hi Peter,

The search is not working on “remarks” fields, where the file document is created using DMX API. Here is the code I used to create the file (PDF) document and update the “remarks” to that file document:

// Creates the file document
int iEntryID = EntriesController.SimplifiedUpload(this.PortalId, iCollectionID, oInputStream, Path.GetFileName(oFile.FileName), Path.GetFileNameWithoutExtension(oFile.FileName), oCurrentUser, true);

// adds remarks to document
LongTextInfo inf = new LongTextInfo("ENT", "REMARKS", iEntryID, string.Empty, "This is user manual");
LongTextsController.AddLongText(inf);

Using the above code creating document and adding remarks to file has done successfully.

But if I go and search with string ‘manual’, the created document is not showing in search results. The same is working fine if I add the remarks manually (by right-click on document-> add remarks -> click on Finish).

So am I missing any thing in the above code to make it work?
Please do need helpful to make working ‘Search’ on ‘remarks’ field, if the document is creating using DMX API.

Regards,
Srinivas
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
08/24/2011 1:50 PM
Hi Srinivas,

You'll need to pass the document through the search controller again so all changes are fed into the search index.

Peter
You are not authorized to post a reply.