Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 general forum

Knowledge Article FullTextSearch only respond with 5 articles

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

When I am using FullTextSearchKnowledgeArticleReuqest to search for a specific string in all articles in my Dynamics 365, only 5 articles are returned no matter what string I used for searching. Here's the code that I used:

  var queryExpression = new QueryExpression();
            queryExpression.ColumnSet = new ColumnSet(true);
            
            queryExpression.EntityName = KnowledgeArticle.EntityLogicalName;

           queryExpression.PageInfo = new PagingInfo();
            //queryExpression.PageInfo.
            queryExpression.PageInfo.PageNumber = 1;
            queryExpression.PageInfo.Count = 200;
 
            FullTextSearchKnowledgeArticleRequest searchByTitleRequest = new FullTextSearchKnowledgeArticleRequest()
            {
           
                UseInflection = true,
                SearchText = searchtext,
                RemoveDuplicates = false,
                StateCode = (int)KnowledgeArticleState.Published,

                QueryExpression = queryExpression
            };
       
            var searchByTitleResponse = (FullTextSearchKnowledgeArticleResponse)
                                this._context.Execute(searchByTitleRequest);


            var retrievedArticles = searchByTitleResponse.EntityCollection.Entities
                .Select((entity) => (KnowledgeArticle)entity);

Can some one tell me how should I called the request or anything i need to do to modify the system setting?

Thanks

Categories:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,307 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans