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

Tawanda_Chinaka
Champ in-the-making
Champ in-the-making

Why are you not filtering using the keywords?

 

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

I can but some old documents don't have a keyword on Onbase. I tested full text search on client and for one of example its returning approx. 150 documents. But I have an issue with my API call.

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

Any one?

Getting following error.

Unity API: Invalid Text Search Type is provided

Are you licensed for IDOL Full Text or Hyland's new Full Text Search?  Should you be using TextSearchType.OnBaseFullTextSearch instead?