cancel
Showing results for 
Search instead for 
Did you mean: 

FullText Search through API

Prahar_Shah
Champ in-the-making
Champ in-the-making

I am trying to get number of document based on full text search. I wrote following code

DocumentQuery query = app.Core.CreateDocumentQuery();
query.AddDocumentType(docTypeName);
query.RetrievalOptions = Hyland.Unity.DocumentRetrievalOptions.None;
query.AddTextSearchConstraint(DocumentQuery.TextSearchType.IDOLFullTextSearch, fullText);
DocumentList docList = query.Execute(100);
int i = docList.Count();

I am keep getting error on execute line "An error occurred within the Unity API: Invalid Text Search Type is provided" 

Any idea to resolve it ?

5 REPLIES 5

I can only see IDOLFullTextSearch..I don't have option for OnBaseFullTextSearch.

Yes we have license and I can do through Unity Client