Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

Knowledge Article FullTextSearch only respond with 5 articles

$
0
0

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


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>